VALID_HOOKS
VALID_HOOKS = array('routes', 'bootstrap', 'console', 'middleware')
List of valid hooks.
Plugin Interface
bootstrap(\Cake\Core\PluginApplicationInterface $app) : void
Load all the application configuration and bootstrap logic.
The default implementation of this method will include the config/bootstrap.php
in the plugin if it exist. You
can override this method to replace that behavior.
The host application is provided as an argument. This allows you to load additional plugin dependencies, or attach events.
\Cake\Core\PluginApplicationInterface | $app | The host application |
console(\Cake\Console\CommandCollection $commands) : \Cake\Console\CommandCollection
Add console commands for the plugin.
\Cake\Console\CommandCollection | $commands | The command collection to update |
middleware(\Cake\Http\MiddlewareQueue $middleware) : \Cake\Http\MiddlewareQueue
Add middleware for the plugin.
\Cake\Http\MiddlewareQueue | $middleware | The middleware queue to update. |
routes(\Cake\Routing\RouteBuilder $routes) : void
Add routes for the plugin.
The default implementation of this method will include the config/routes.php
in the plugin if it exists. You
can override this method to replace that behavior.
\Cake\Routing\RouteBuilder | $routes | The route builder to update. |
Loading…