Skip to content

Commit

Permalink
Merge pull request #201 from creative-commoners/pulls/2/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 3146434 + afd2057 commit 6f7c396
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 20 deletions.
4 changes: 2 additions & 2 deletions code/BasicFieldsTestFileExtension.php
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
4 changes: 2 additions & 2 deletions code/DevBuildGeneratorExtension.php
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
5 changes: 3 additions & 2 deletions code/FileUploadRole.php
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
5 changes: 3 additions & 2 deletions code/FrameworkTestFileExtension.php
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
4 changes: 2 additions & 2 deletions code/FrameworkTestModelAdminExtension.php
Original file line number Diff line number Diff line change
@@ -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;
}
6 changes: 2 additions & 4 deletions code/FrameworkTestRole.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
5 changes: 3 additions & 2 deletions code/FrameworkTestSiteTreeExtension.php
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
4 changes: 2 additions & 2 deletions code/TestDataObjectExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
4 changes: 2 additions & 2 deletions code/elemental/ElementalBehatTestExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6f7c396

Please sign in to comment.