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
use SilverStripe\ORM\DataExtension;
use SilverStripe\Core\Extension;
class BasicFieldsTestFileExtension extends DataExtension
class BasicFieldsTestFileExtension extends Extension
{
private static $has_one = [
'TestPage' => BasicFieldsTestPage::class,

View File

@ -1,12 +1,12 @@
<?php
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.
*/
class DevBuildGeneratorExtension extends DataExtension
class DevBuildGeneratorExtension extends Extension
{
use Configurable;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -3,9 +3,9 @@
namespace SilverStripe\FrameworkTest\Elemental\Extension;
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 = [
'ElementalArea' => ElementalArea::class,