aboutsummaryrefslogtreecommitdiffstats
path: root/Model
diff options
context:
space:
mode:
authorAlexis von Glasow <vonglasow@gmail.com>2016-03-25 09:33:25 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2016-05-09 13:25:27 +0200
commitd42a5c204a9fda83ac9570c56361cc3e0f35bd06 (patch)
tree4f3388611f4a0f7041c103946af9791dbc2fcaee /Model
parent1e80ca1f8f2d83ccd94457da234e9dd88ef5c7c6 (diff)
downloadPraspel-d42a5c204a9fda83ac9570c56361cc3e0f35bd06.zip
Praspel-d42a5c204a9fda83ac9570c56361cc3e0f35bd06.tar.gz
Praspel-d42a5c204a9fda83ac9570c56361cc3e0f35bd06.tar.bz2
Disjunction: Fix autoloading.
Diffstat (limited to 'Model')
-rw-r--r--Model/Specification.php9
-rw-r--r--Model/Variable/Implicit.php8
2 files changed, 9 insertions, 8 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.');
+}
diff --git a/Model/Variable/Implicit.php b/Model/Variable/Implicit.php
index acc759f..8bb8cfe 100644
--- a/Model/Variable/Implicit.php
+++ b/Model/Variable/Implicit.php
@@ -40,10 +40,6 @@ use Hoa\Consistency;
use Hoa\Praspel;
use Hoa\Realdom;
-if (false === Consistency::entityExists('Hoa\Realdom\Disjunction')) {
- Consistency\Autoloader::load('Hoa\Realdom\Disjunction');
-}
-
/**
* Class \Hoa\Praspel\Model\Variable\Implicit.
*
@@ -100,3 +96,7 @@ class Implicit extends Variable
return;
}
}
+
+if (false === Consistency::entityExists('Hoa\Realdom\Disjunction', true)) {
+ throw new Praspel\Exception('Hoa\Realdom seems to not be loaded.');
+}