Skip to content

Commit

Permalink
Merge pull request #542 from creative-commoners/pulls/6/protected-docs
Browse files Browse the repository at this point in the history
DOC Update extension hook examples to be protected
  • Loading branch information
GuySartorelli authored May 21, 2024
2 parents 7161f05 + 7ba5f41 commit 3aba200
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/en/05_datastores.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ use SilverStripe\MFA\Store\StoreInterface;
// Apply extension to SilverStripe\MFA\Authenticator\LoginHandler
class MyLoginHandlerExtension extends Extension
{
public function onBeforeSaveRequestToStore(HTTPRequest $request, StoreInterface $store): void
protected function onBeforeSaveRequestToStore(HTTPRequest $request, StoreInterface $store): void
{
$request->offsetUnset('MySecretField');
}
Expand Down
2 changes: 1 addition & 1 deletion docs/en/08_backup-codes.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class BackupCodeGeneratorExtension extends Extension
/**
* Add some special characters into the character set for generating backup codes
*/
public function updateCharacterSet(&$characterSet)
protected function updateCharacterSet(&$characterSet)
{
$characterSet = array_merge($characterSet, ['!', '@', '#', '$', '%', '^']);
}
Expand Down

0 comments on commit 3aba200

Please sign in to comment.