FIX Only add extension if elemental module exists

This commit is contained in:
Steve Boyd 2022-07-05 21:08:37 +12:00
parent ce4dec4ea7
commit d0deef8719
2 changed files with 5 additions and 5 deletions

View File

@ -20,3 +20,7 @@ SilverStripe\FrameworkTest\Elemental\Model\ElementalBehatTestObject:
extensions: extensions:
- DNADesign\Elemental\Extensions\ElementalAreasExtension - DNADesign\Elemental\Extensions\ElementalAreasExtension
- SilverStripe\FrameworkTest\Elemental\Extension\ElementalBehatTestExtension - SilverStripe\FrameworkTest\Elemental\Extension\ElementalBehatTestExtension
BasicElementalPage:
extensions:
- DNADesign\Elemental\Extensions\ElementalPageExtension

View File

@ -1,10 +1,6 @@
<?php <?php
// DNADesign\Elemental\Extensions\ElementalPageExtension is added in extensions.yml
use DNADesign\Elemental\Extensions\ElementalPageExtension;
class BasicElementalPage extends Page class BasicElementalPage extends Page
{ {
private static $extensions = [
ElementalPageExtension::class,
];
} }