Skip to content

Clarify Craft intialisation order for modules/plugins #9671

Discussion options

You must be logged in to vote

If your module is listed in the bootstrap array in config/app.php, thes you are correct, it will load before plugins.

Here’s the general order of request initialization:

  1. Load Yii extensions
  2. Load bootstrapped modules
  3. Load plugins
  4. Trigger EVENT_INIT event

Nothing changed about this in 3.7 that I can think of. It’s worked this way since 3.0.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@brandonkelly
Comment options

Answer selected by brandonkelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants