Interface for Applications that leverage plugins & events.
Events can be bound to the application event manager during the application's bootstrap and plugin bootstrap.
addPlugin( string|Cake\Core\PluginInterface $name , array $config [] )
Add a plugin to the loaded plugin set.
Cake\Core\PluginInterface
$name
$config
optional [] pluginConsole( Cake\Console\CommandCollection $commands )
Run console hooks for plugins
Cake\Console\CommandCollection
$commands
Cake\Console\CommandCollection
pluginMiddleware( Cake\Http\MiddlewareQueue $middleware )
Run middleware hooks for plugins
Cake\Http\MiddlewareQueue
$middleware
Cake\Http\MiddlewareQueue
pluginRoutes( Cake\Routing\RouteBuilder $routes )
Run routes hooks for loaded plugins
Cake\Routing\RouteBuilder
$routes
Cake\Routing\RouteBuilder
getEventManager() |
© 2005–2018 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.6/class-Cake.Core.PluginApplicationInterface.html