Skip to content

Commit

Permalink
API Replace Extension subclasses
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Aug 20, 2024
1 parent de89e36 commit 202145e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions code/AuditHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use SilverStripe\Control\Controller;
use SilverStripe\Control\Email\Email;
use SilverStripe\Core\Injector\Injector;
use SilverStripe\ORM\DataExtension;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\DataObjectSchema;
use SilverStripe\ORM\DB;
Expand All @@ -15,13 +14,14 @@
use SilverStripe\Security\PermissionRole;
use SilverStripe\Security\PermissionRoleCode;
use SilverStripe\Security\Security;
use SilverStripe\Core\Extension;

/**
* Provides logging hooks that are inserted into Framework objects.
*
* @extends DataExtension<Member|SiteTree|Controller>
* @extends Extension<Member|SiteTree|Controller>
*/
class AuditHook extends DataExtension
class AuditHook extends Extension
{
protected function getAuditLogger()
{
Expand Down
6 changes: 3 additions & 3 deletions code/AuditHookMFA.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
use SilverStripe\MFA\Authenticator\LoginHandler;
use SilverStripe\MFA\Method\MethodInterface;
use SilverStripe\MFA\Service\RegisteredMethodManager;
use SilverStripe\ORM\DataExtension;
use SilverStripe\Security\Member;
use SilverStripe\Core\Extension;

/**
* Provides logging actions on extension hooks from certain silverstripe/mfa actions.
*
* @extends DataExtension<LoginHandler|RegisteredMethodManager>
* @extends Extension<LoginHandler|RegisteredMethodManager>
*/
class AuditHookMFA extends DataExtension
class AuditHookMFA extends Extension
{
/**
* A successful login using an MFA method
Expand Down
6 changes: 3 additions & 3 deletions code/AuditHookSessionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@

use Psr\Log\LoggerInterface;
use SilverStripe\Core\Injector\Injector;
use SilverStripe\ORM\DataExtension;
use SilverStripe\Security\Security;
use SilverStripe\SessionManager\Controllers\LoginSessionController;
use SilverStripe\SessionManager\Models\LoginSession;
use SilverStripe\Core\Extension;

/**
* Provides logging actions on extension hooks from certain silverstripe/session-manager actions.
*
* @extends DataExtension<LoginSessionController>
* @extends Extension<LoginSessionController>
*/
class AuditHookSessionManager extends DataExtension
class AuditHookSessionManager extends Extension
{
/**
* Login session for a member is being removed
Expand Down

0 comments on commit 202145e

Please sign in to comment.