API Replace Extension subclasses

This commit is contained in:
Steve Boyd 2024-08-20 16:14:03 +12:00
parent 31464347a0
commit afd205789e
9 changed files with 21 additions and 20 deletions

View File

@ -1,8 +1,8 @@
<?php <?php
use SilverStripe\ORM\DataExtension; use SilverStripe\Core\Extension;
class BasicFieldsTestFileExtension extends DataExtension class BasicFieldsTestFileExtension extends Extension
{ {
private static $has_one = [ private static $has_one = [
'TestPage' => BasicFieldsTestPage::class, 'TestPage' => BasicFieldsTestPage::class,

View File

@ -1,12 +1,12 @@
<?php <?php
use SilverStripe\Core\Config\Configurable; use SilverStripe\Core\Config\Configurable;
use SilverStripe\ORM\DataExtension; use SilverStripe\Core\Extension;
/** /**
* There is no good place to put this setting, so it gets a class. * There is no good place to put this setting, so it gets a class.
*/ */
class DevBuildGeneratorExtension extends DataExtension class DevBuildGeneratorExtension extends Extension
{ {
use Configurable; use Configurable;

View File

@ -1,7 +1,8 @@
<?php <?php
use SilverStripe\ORM\DataExtension; use SilverStripe\Core\Extension;
class FileUploadRole extends DataExtension
class FileUploadRole extends Extension
{ {
private static $has_one = array( private static $has_one = array(
'AFile' => 'SilverStripe\\Assets\\File', 'AFile' => 'SilverStripe\\Assets\\File',

View File

@ -1,7 +1,8 @@
<?php <?php
use SilverStripe\ORM\DataExtension; use SilverStripe\Core\Extension;
class FrameworkTestFileExtension extends DataExtension
class FrameworkTestFileExtension extends Extension
{ {
private static $has_one = array( private static $has_one = array(
'Company' => 'SilverStripe\\FrameworkTest\\Model\\Company', 'Company' => 'SilverStripe\\FrameworkTest\\Model\\Company',

View File

@ -1,8 +1,8 @@
<?php <?php
use SilverStripe\ORM\DataExtension; use SilverStripe\Core\Extension;
class FrameworkTestModelAdminExtension extends DataExtension class FrameworkTestModelAdminExtension extends Extension
{ {
private static $page_length = 3; private static $page_length = 3;
} }

View File

@ -2,14 +2,12 @@
use SilverStripe\ORM\DataObject; use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\DB; use SilverStripe\ORM\DB;
use SilverStripe\ORM\DataExtension; use SilverStripe\Core\Extension;
use SilverStripe\Security\Member; use SilverStripe\Security\Member;
use SilverStripe\Forms\FieldList; use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\TreeDropdownField; use SilverStripe\Forms\TreeDropdownField;
class FrameworkTestRole extends Extension
class FrameworkTestRole extends DataExtension
{ {
private static $has_one = array( private static $has_one = array(

View File

@ -1,7 +1,8 @@
<?php <?php
use SilverStripe\ORM\DataExtension; use SilverStripe\Core\Extension;
class FrameworkTestSiteTreeExtension extends DataExtension
class FrameworkTestSiteTreeExtension extends Extension
{ {
private static $has_one = array('RelationFieldsTestPage' => 'RelationFieldsTestPage'); private static $has_one = array('RelationFieldsTestPage' => 'RelationFieldsTestPage');
private static $belongs_many_many = array('RelationFieldsTestPages' => 'RelationFieldsTestPage'); private static $belongs_many_many = array('RelationFieldsTestPages' => 'RelationFieldsTestPage');

View File

@ -2,11 +2,11 @@
namespace SilverStripe\FrameworkTest\Extension; namespace SilverStripe\FrameworkTest\Extension;
use SilverStripe\ORM\DataExtension; use SilverStripe\Core\Extension;
use SilverStripe\Security\Permission; use SilverStripe\Security\Permission;
use SilverStripe\Security\PermissionProvider; use SilverStripe\Security\PermissionProvider;
class TestDataObjectExtension extends DataExtension implements PermissionProvider class TestDataObjectExtension extends Extension implements PermissionProvider
{ {
public function providePermissions() public function providePermissions()
{ {

View File

@ -3,9 +3,9 @@
namespace SilverStripe\FrameworkTest\Elemental\Extension; namespace SilverStripe\FrameworkTest\Elemental\Extension;
use DNADesign\Elemental\Models\ElementalArea; use DNADesign\Elemental\Models\ElementalArea;
use SilverStripe\ORM\DataExtension; use SilverStripe\Core\Extension;
class ElementalBehatTestExtension extends DataExtension class ElementalBehatTestExtension extends Extension
{ {
private static $has_one = [ private static $has_one = [
'ElementalArea' => ElementalArea::class, 'ElementalArea' => ElementalArea::class,