Skip to content

Commit

Permalink
Merge pull request #212 from creative-commoners/pulls/3/replace-exten…
Browse files Browse the repository at this point in the history
…sion-subclasses

API Replace Extension subclasses
  • Loading branch information
GuySartorelli authored Aug 28, 2024
2 parents d9386d9 + 4d22bc2 commit 050c979
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Extensions/MemberExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace SilverStripe\SessionManager\Extensions;

use SilverStripe\Forms\FieldList;
use SilverStripe\ORM\DataExtension;
use SilverStripe\Core\Extension;
use SilverStripe\ORM\HasManyList;
use SilverStripe\Security\Member;
use SilverStripe\SessionManager\FormFields\SessionManagerField;
Expand All @@ -14,9 +14,9 @@
*
* @method HasManyList<LoginSession> LoginSessions()
*
* @extends DataExtension<Member>
* @extends Extension<Member>
*/
class MemberExtension extends DataExtension
class MemberExtension extends Extension
{
/**
* URL to the user help abot managing session
Expand Down
4 changes: 2 additions & 2 deletions tests/php/Extensions/ForcePermission.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

namespace SilverStripe\SessionManager\Tests\Extensions;

use SilverStripe\ORM\DataExtension;
use SilverStripe\Core\Extension;
use SilverStripe\Dev\TestOnly;

/**
* This extension is meant to be applied to LoginSession so we can force permission to scenarios that won't happen
* natively with a default install of the session manager module.
*/
class ForcePermission extends DataExtension implements TestOnly
class ForcePermission extends Extension implements TestOnly
{
private static $canView = null;
private static $canDelete = null;
Expand Down

0 comments on commit 050c979

Please sign in to comment.