Skip to content

cakephp-bakeoff/checkpoint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Configuration

Add config/Bakeoff/Checkpoint.php to your main application.

  • Set enable to true.
  • Set routes to array containing routes you need. Each route here contains the usual CakePHP route elements.
  • Set adapter to 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',
    ],
];

About

Simple CakePHP anti-bot challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors