diff --git a/src/Extension.php b/src/Extension.php index c29e4b4..7a1b7aa 100644 --- a/src/Extension.php +++ b/src/Extension.php @@ -15,6 +15,6 @@ public function getName(): string public function initialize(): void { - $this->getWidgets()->registerWidget(new NewsWidget()); + $this->registerWidget(new NewsWidget()); } }