diff options
author | Alexis von Glasow <vonglasow@gmail.com> | 2016-03-25 09:33:25 +0100 |
---|---|---|
committer | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2016-05-09 13:25:27 +0200 |
commit | d42a5c204a9fda83ac9570c56361cc3e0f35bd06 (patch) | |
tree | 4f3388611f4a0f7041c103946af9791dbc2fcaee /Model/Specification.php | |
parent | 1e80ca1f8f2d83ccd94457da234e9dd88ef5c7c6 (diff) | |
download | Praspel-d42a5c204a9fda83ac9570c56361cc3e0f35bd06.zip Praspel-d42a5c204a9fda83ac9570c56361cc3e0f35bd06.tar.gz Praspel-d42a5c204a9fda83ac9570c56361cc3e0f35bd06.tar.bz2 |
Disjunction: Fix autoloading.
Diffstat (limited to 'Model/Specification.php')
-rw-r--r-- | Model/Specification.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Model/Specification.php b/Model/Specification.php index ce8b442..1d7b59d 100644 --- a/Model/Specification.php +++ b/Model/Specification.php @@ -37,10 +37,7 @@ namespace Hoa\Praspel\Model; use Hoa\Consistency; - -if (false === Consistency::entityExists('Hoa\Realdom\Disjunction')) { - Consistency\Autoloader::load('Hoa\Realdom\Disjunction'); -} +use Hoa\Praspel; /** * Class \Hoa\Praspel\Model\Specification. @@ -152,3 +149,7 @@ class Specification extends Behavior return 'praspel'; } } + +if (false === Consistency::entityExists('Hoa\Realdom\Disjunction', true)) { + throw new Praspel\Exception('Hoa\Realdom seems to not be loaded.'); +} |