Skip to content

Commit

Permalink
Updated site module
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Leveille committed May 9, 2023
1 parent b262e22 commit 101ff55
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/site/Site.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ public function init(): void
$this->_setModuleComponents();

Craft::$app->on(Application::EVENT_INIT, function() {
$this->_registerUrlRules();
$this->_registerTemplateRoots();
$this->_registerElementBehaviors();
$this->_registerUserBehaviors();
$this->_registerAssetBundles();
$this->_registerTwigExtensions();
$this->_registerWidgets();
});

Event::on(Plugins::class, Plugins::EVENT_AFTER_LOAD_PLUGINS, function() {
$this->_registerUrlRules();
$this->_registerElementEvents();
$this->_registerGqlEvents();
});
Expand Down Expand Up @@ -105,9 +105,9 @@ private function _registerTemplateRoots(): void
}

/**
* Register element behaviors.
* Register user behaviors.
*/
private function _registerElementBehaviors(): void
private function _registerUserBehaviors(): void
{
// Attach user behaviors
Craft::$app->getUser()->attachBehaviors([
Expand Down

0 comments on commit 101ff55

Please sign in to comment.