Skip to content

Commit

Permalink
API Use new names for renamed classes (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Sep 23, 2024
1 parent d0b9b26 commit 3e9e2c6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/RegistryImportFeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use SilverStripe\Control\RSS\RSSFeed;
use SilverStripe\Core\Config\Configurable;
use SilverStripe\Core\Injector\Injectable;
use SilverStripe\ORM\ArrayList;
use SilverStripe\Model\List\ArrayList;
use SilverStripe\ORM\FieldType\DBDatetime;

class RegistryImportFeed
Expand Down
4 changes: 2 additions & 2 deletions src/RegistryImportFeedEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace SilverStripe\Registry;

use SilverStripe\View\ViewableData;
use SilverStripe\Model\ModelData;

class RegistryImportFeedEntry extends ViewableData
class RegistryImportFeedEntry extends ModelData
{
protected $title;
protected $description;
Expand Down
4 changes: 2 additions & 2 deletions src/RegistryPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
use SilverStripe\Forms\DropdownField;
use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\NumericField;
use SilverStripe\ORM\ArrayList;
use SilverStripe\Model\List\ArrayList;
use SilverStripe\ORM\DataList;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\FieldType\DBDatetime;
use SilverStripe\View\SSViewer;
use SilverStripe\View\ArrayData;
use SilverStripe\Model\ArrayData;

class RegistryPage extends Page
{
Expand Down
12 changes: 6 additions & 6 deletions src/RegistryPageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
use SilverStripe\Forms\Form;
use SilverStripe\Forms\FormAction;
use SilverStripe\Forms\HiddenField;
use SilverStripe\ORM\ArrayList;
use SilverStripe\Model\List\ArrayList;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\PaginatedList;
use SilverStripe\ORM\SS_List;
use SilverStripe\Model\List\PaginatedList;
use SilverStripe\Model\List\SS_List;
use SilverStripe\Registry\Exception\RegistryException;
use SilverStripe\View\ArrayData;
use SilverStripe\View\ViewableData;
use SilverStripe\Model\ArrayData;
use SilverStripe\Model\ModelData;

/**
* @extends PageController<RegistryPage>
Expand Down Expand Up @@ -235,7 +235,7 @@ public function Columns($id = null)
// Increment properties for value
$context = $result;
foreach ($properties as $property) {
if ($context instanceof ViewableData) {
if ($context instanceof ModelData) {
$context = $context->obj($property);
}
}
Expand Down

0 comments on commit 3e9e2c6

Please sign in to comment.