FIX Class manifest was still seeing the files (#125)

This commit is contained in:
Guy Sartorelli 2022-09-16 14:57:14 +12:00 committed by GitHub
parent 936f286e09
commit 63c3550fbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 871 additions and 875 deletions

View File

@ -6,10 +6,7 @@ use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\DB;
use SilverStripe\Registry\RegistryDataInterface;
if (!interface_exists(RegistryDataInterface::class)) {
return;
}
if (interface_exists(RegistryDataInterface::class)) {
class TestRegistryDataObject extends DataObject implements RegistryDataInterface
{
private static $table_name = 'TestRegistryDataObject';
@ -872,3 +869,4 @@ class TestRegistryDataObject extends DataObject implements RegistryDataInterface
DB::alteration_message('Added default records to DefaultRegistryDataObject table', 'created');
}
}
}

View File

@ -7,9 +7,6 @@ use SilverStripe\Security\DefaultAdminService;
use SilverStripe\Security\Member;
if (!class_exists(RegistryPage::class)) {
return;
}
class TestRegistryPage extends RegistryPage
{
public function requireDefaultRecords()
@ -30,3 +27,4 @@ class TestRegistryPage extends RegistryPage
}
}
}
}