Skip to content

Commit

Permalink
Access widgets properly
Browse files Browse the repository at this point in the history
  • Loading branch information
bobdenotter authored Sep 27, 2019
1 parent f982b4b commit 0e1d42e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ public function getName(): string

public function initialize(): void
{
$this->widgets->registerWidget(new NewsWidget());
$this->getWidgets()->registerWidget(new NewsWidget());
}
}

0 comments on commit 0e1d42e

Please sign in to comment.