File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -107,14 +107,17 @@ Plugins offer several hooks that allow a plugin to inject itself into the
107
107
appropriate parts of your application. The hooks are:
108
108
109
109
* ``bootstrap `` Used to load plugin default configuration files, define
110
- constants and other global functions.
110
+ constants and other global functions. The ``bootstrap `` method is passed the
111
+ current ``Application `` instance giving you broad access to the DI container
112
+ and configuration.
111
113
* ``routes `` Used to load routes for a plugin. Fired after application routes
112
114
are loaded.
113
115
* ``middleware `` Used to add plugin middleware to an application's middleware
114
116
queue.
115
117
* ``console `` Used to add console commands to an application's command
116
118
collection.
117
- * ``services `` Used to register application container services
119
+ * ``services `` Used to register application container service. This is a good
120
+ opportunity to setup additional objects that need acccess to the container.
118
121
119
122
By default all plugins hooks are enabled. You can disable hooks by using the
120
123
related options of the ``plugin load `` command:
You can’t perform that action at this time.
0 commit comments