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.
If the named plugin does not exist, or does not define a Plugin class, an instance of Cake\Core\BasePlugin will be used. This generated class will have all plugin hooks enabled.
Cake\Core\PluginInterface $name $config optional [] pluginConsole( Cake\Console\CommandCollection $commands )
Run console hooks for plugins
Cake\Console\CommandCollection $commands Cake\Console\CommandCollectionpluginMiddleware( Cake\Http\MiddlewareQueue $middleware )
Run middleware hooks for plugins
Cake\Http\MiddlewareQueue $middleware Cake\Http\MiddlewareQueuepluginRoutes( Cake\Routing\RouteBuilder $routes )
Run routes hooks for loaded plugins
Cake\Routing\RouteBuilder $routes Cake\Routing\RouteBuildergetEventManager() |
© 2005–present 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.8/class-Cake.Core.PluginApplicationInterface.html