Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Replace Extension subclasses #90

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading