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 97107b0 commit 590b501
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions code/Controller/AssetAdminFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
use SilverStripe\Assets\Shortcodes\FileLink;
use SilverStripe\Control\Director;
use SilverStripe\ORM\ArrayList;
use SilverStripe\ORM\DataExtension;
use SilverStripe\ORM\SS_List;
use SilverStripe\Versioned\Versioned;
use SilverStripe\Versioned\DataDifferencer;
use SilverStripe\Core\Extension;

/**
* Update File dataobjects to be editable in this asset admin
*
* @extends DataExtension<File>
* @extends Extension<File>
*/
class AssetAdminFile extends DataExtension
class AssetAdminFile extends Extension
{
/**
* Max width for inserted images
Expand Down
4 changes: 2 additions & 2 deletions tests/php/Controller/AssetAdminTest/FileExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace SilverStripe\AssetAdmin\Tests\Controller\AssetAdminTest;

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

class FileExtension extends DataExtension implements TestOnly
class FileExtension extends Extension implements TestOnly
{
public function canView($member = null)
{
Expand Down
4 changes: 2 additions & 2 deletions tests/php/Controller/AssetAdminTest/FolderExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace SilverStripe\AssetAdmin\Tests\Controller\AssetAdminTest;

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

class FolderExtension extends DataExtension implements TestOnly
class FolderExtension extends Extension implements TestOnly
{
public function canView($member = null, $context = array())
{
Expand Down
4 changes: 2 additions & 2 deletions tests/php/Forms/FileFormBuilderTest/FileExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
namespace SilverStripe\AssetAdmin\Tests\Forms\FileFormBuilderTest;

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

/**
* An extension to test file permissions
* @package SilverStripe\AssetAdmin\Tests\Forms\FileFormBuilderTest
*/
class FileExtension extends DataExtension implements TestOnly
class FileExtension extends Extension implements TestOnly
{
// public flags to toggle permissions during tests
public static $canDelete = false;
Expand Down

0 comments on commit 590b501

Please sign in to comment.