Skip to content

Commit

Permalink
API Standardise extension hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Aug 25, 2024
1 parent 3e51244 commit 17b432d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion code/LeftAndMain.php
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ protected function init()
}
}

$this->extend('init');
$this->extend('onInit');

// Load the editor with original user themes before overwriting
// them with admin themes
Expand Down
2 changes: 1 addition & 1 deletion code/LeftAndMainExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct()
parent::__construct();
}

public function init()
protected function onInit()
{
}

Expand Down
2 changes: 1 addition & 1 deletion tests/behat/src/Extension/CannotCreateExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class CannotCreateExtension extends Extension implements TestOnly
{
public function canCreate()
protected function canCreate()
{
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/behat/src/Extension/CannotDeleteExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class CannotDeleteExtension extends Extension implements TestOnly
{
public function canDelete()
protected function canDelete()
{
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/behat/src/Extension/CannotEditExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class CannotEditExtension extends Extension implements TestOnly
{
public function canEdit()
protected function canEdit()
{
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/php/CMSProfileControllerTest/TestExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class TestExtension extends DataExtension
{
public function canEdit($member = null)
protected function canEdit($member = null)
{
return false;
}
Expand Down

0 comments on commit 17b432d

Please sign in to comment.