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,12 +6,9 @@ use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\DB;
use SilverStripe\Registry\RegistryDataInterface;
if (!interface_exists(RegistryDataInterface::class)) {
return;
}
class TestRegistryDataObject extends DataObject implements RegistryDataInterface
{
if (interface_exists(RegistryDataInterface::class)) {
class TestRegistryDataObject extends DataObject implements RegistryDataInterface
{
private static $table_name = 'TestRegistryDataObject';
private static $db = [
@ -871,4 +868,5 @@ class TestRegistryDataObject extends DataObject implements RegistryDataInterface
DB::alteration_message('Added default records to DefaultRegistryDataObject table', 'created');
}
}
}

View File

@ -7,11 +7,8 @@ use SilverStripe\Security\DefaultAdminService;
use SilverStripe\Security\Member;
if (!class_exists(RegistryPage::class)) {
return;
}
class TestRegistryPage extends RegistryPage
{
class TestRegistryPage extends RegistryPage
{
public function requireDefaultRecords()
{
if (!DataObject::get_one(static::class)) {
@ -29,4 +26,5 @@ class TestRegistryPage extends RegistryPage
});
}
}
}
}