Skip to content

Commit

Permalink
Register project config event handlers before loading plugins
Browse files Browse the repository at this point in the history
Resolves #3943
  • Loading branch information
brandonkelly authored and angrybrad committed May 6, 2019
1 parent 2e30f4b commit b7493ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG-v3.md
@@ -1,5 +1,10 @@
# Release Notes for Craft CMS 3.x

## Unreleased

### Changed
- Craft now registers its project config event handlers before loading plugins. ([#3943](https://github.com/craftcms/cms/issues/3943))

## 3.1.24 - 2019-04-23

### Added
Expand Down
6 changes: 3 additions & 3 deletions src/base/ApplicationTrait.php
Expand Up @@ -1221,14 +1221,14 @@ private function _preInit()
*/
private function _postInit()
{
// Register all the listeners for config items
$this->_registerConfigListeners();

// Load the plugins
$this->getPlugins()->loadPlugins();

$this->_isInitialized = true;

// Register all the listeners for config items
$this->_registerConfigListeners();

// Fire an 'init' event
if ($this->hasEventHandlers(WebApplication::EVENT_INIT)) {
$this->trigger(WebApplication::EVENT_INIT);
Expand Down

0 comments on commit b7493ac

Please sign in to comment.