mirror of
https://github.com/silverstripe/silverstripe-environmentcheck
synced 2024-10-22 17:05:40 +02:00
Merge pull request #46 from andrewandante/FIX/add_object_traits
add object traits
This commit is contained in:
commit
7204c4792d
@ -4,10 +4,12 @@ namespace SilverStripe\EnvironmentCheck;
|
|||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use InvalidArgumentException;
|
use InvalidArgumentException;
|
||||||
|
use SilverStripe\Core\Config\Configurable;
|
||||||
|
use SilverStripe\Core\Extensible;
|
||||||
|
use SilverStripe\Core\Injector\Injectable;
|
||||||
use SilverStripe\Core\Injector\Injector;
|
use SilverStripe\Core\Injector\Injector;
|
||||||
use SilverStripe\EnvironmentCheck\EnvironmentCheck;
|
use SilverStripe\EnvironmentCheck\EnvironmentCheck;
|
||||||
use SilverStripe\ORM\ArrayList;
|
use SilverStripe\ORM\ArrayList;
|
||||||
use SilverStripe\ORM\DataObject;
|
|
||||||
use SilverStripe\View\ArrayData;
|
use SilverStripe\View\ArrayData;
|
||||||
use SilverStripe\View\ViewableData;
|
use SilverStripe\View\ViewableData;
|
||||||
|
|
||||||
@ -32,8 +34,11 @@ use SilverStripe\View\ViewableData;
|
|||||||
*
|
*
|
||||||
* @package environmentcheck
|
* @package environmentcheck
|
||||||
*/
|
*/
|
||||||
class EnvironmentCheckSuite extends DataObject
|
class EnvironmentCheckSuite
|
||||||
{
|
{
|
||||||
|
use Configurable;
|
||||||
|
use Injectable;
|
||||||
|
use Extensible;
|
||||||
/**
|
/**
|
||||||
* Name of this suite.
|
* Name of this suite.
|
||||||
*
|
*
|
||||||
@ -72,8 +77,7 @@ class EnvironmentCheckSuite extends DataObject
|
|||||||
*/
|
*/
|
||||||
public function __construct($suiteName)
|
public function __construct($suiteName)
|
||||||
{
|
{
|
||||||
parent::__construct();
|
$this->constructExtensions();
|
||||||
|
|
||||||
if (empty($this->config()->registered_suites[$suiteName])) {
|
if (empty($this->config()->registered_suites[$suiteName])) {
|
||||||
// Not registered via config system, but it still may be configured later via self::register.
|
// Not registered via config system, but it still may be configured later via self::register.
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user