Skip to content

Commit

Permalink
Merge pull request #194 from creative-commoners/pulls/3/protect-hooks
Browse files Browse the repository at this point in the history
API Set extension hook implementation visibility to protected
  • Loading branch information
GuySartorelli authored May 21, 2024
2 parents 45381a4 + e049ace commit 3e2f376
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Extensions/MemberExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class MemberExtension extends DataExtension
/**
* @param FieldList $fields
*/
public function updateCMSFields(FieldList $fields)
protected function updateCMSFields(FieldList $fields)
{
$fields->removeByName('LoginSessions');

Expand Down
4 changes: 2 additions & 2 deletions src/Extensions/RememberLoginHashExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class RememberLoginHashExtension extends Extension
/**
* @return void
*/
public function onAfterGenerateToken(): void
protected function onAfterGenerateToken(): void
{
$loginHandler = Injector::inst()->get(LogInAuthenticationHandler::class);
$loginHandler->setRememberLoginHash($this->owner);
Expand All @@ -35,7 +35,7 @@ public function onAfterGenerateToken(): void
/**
* @return void
*/
public function onAfterRenewToken(): void
protected function onAfterRenewToken(): void
{
$loginHandler = Injector::inst()->get(LogInAuthenticationHandler::class);
$request = Injector::inst()->get(HTTPRequest::class);
Expand Down

0 comments on commit 3e2f376

Please sign in to comment.