Add config/Bakeoff/Checkpoint.php to your main application.
- Set
enabletotrue. - Set
routesto array containing routes you need. Each route here contains the usual CakePHP route elements. - Set
adapterto use a custom adapter.
Example:
<?php
return [
'Bakeoff/Checkpoint' => [ // Must match the name of this plugin
'enable' => true,
// Matching on all routes
'routes' => true,
// Matching on specific routes
'routes' => [
// Enable for specific plugin
['plugin' => 'MyPlugin'],
// Enable for specific route params
['prefix' => 'foo', 'controller' => 'bar', 'action' => 'qux'],
// Enable for specific route by name
['_name' => 'MyPlugin:Articles:View'],
],
// Leave empty to use default adapter
'adapter' => null,
// Use specific class as adapter
'adapter' => '\My\Namespace\Controller\CustomAdapterController',
],
];