Skip to content

Commit

Permalink
API Set extension hook implementation visibility to protected
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed May 16, 2024
1 parent 7f7e23c commit f1cd155
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EnablerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class EnablerExtension extends Extension
*/
private $defaultPageClass = '';

public function beforeCallActionHandler()
protected function beforeCallActionHandler()
{
$config = Config::inst();
$action = $this->getOwner()->getAction();
Expand All @@ -70,7 +70,7 @@ public function beforeCallActionHandler()
Config::modify()->remove(Security::class, 'page_class');
}

public function afterCallActionHandler()
protected function afterCallActionHandler()
{
Config::inst()->set(Security::class, 'page_class', $this->defaultPageClass);
}
Expand Down

0 comments on commit f1cd155

Please sign in to comment.