Skip to content

Commit

Permalink
Expand docs for plugin events
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 14, 2024
1 parent 7dd2386 commit 89f1e89
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions en/plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,17 @@ Plugins offer several hooks that allow a plugin to inject itself into the
appropriate parts of your application. The hooks are:

* ``bootstrap`` Used to load plugin default configuration files, define
constants and other global functions.
constants and other global functions. The ``bootstrap`` method is passed the
current ``Application`` instance giving you broad access to the DI container
and configuration.
* ``routes`` Used to load routes for a plugin. Fired after application routes
are loaded.
* ``middleware`` Used to add plugin middleware to an application's middleware
queue.
* ``console`` Used to add console commands to an application's command
collection.
* ``services`` Used to register application container services
* ``services`` Used to register application container service. This is a good
opportunity to setup additional objects that need acccess to the container.

By default all plugins hooks are enabled. You can disable hooks by using the
related options of the ``plugin load`` command:
Expand Down

0 comments on commit 89f1e89

Please sign in to comment.