We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 557db51 commit 4dd4e78Copy full SHA for 4dd4e78
composer.json
@@ -8,7 +8,7 @@
8
},
9
"require": {
10
"php": ">=8.0.2",
11
- "craftcms/cms": "^4.4.3"
+ "craftcms/cms": "^4.0.0"
12
13
"require-dev": {
14
"craftcms/ecs": "dev-main"
src/Plugin.php
@@ -66,12 +66,9 @@ public function init(): void
66
{
67
parent::init();
68
69
- // Defer most setup tasks until Craft is fully initialized
70
- Craft::$app->onInit(function() {
71
- $this->setup();
72
- $this->attachFunctions();
73
- $this->registerEvents();
74
- });
+ $this->setup();
+ $this->attachFunctions();
+ $this->registerEvents();
75
}
76
77
/**
0 commit comments