aboutsummaryrefslogtreecommitdiffstats
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
parent1e80ca1f8f2d83ccd94457da234e9dd88ef5c7c6 (diff)
downloadPraspel-d42a5c204a9fda83ac9570c56361cc3e0f35bd06.zip
Praspel-d42a5c204a9fda83ac9570c56361cc3e0f35bd06.tar.gz
Praspel-d42a5c204a9fda83ac9570c56361cc3e0f35bd06.tar.bz2
Disjunction: Fix autoloading.
-rw-r--r--Model/Specification.php9
-rw-r--r--Model/Variable/Implicit.php8
-rw-r--r--Visitor/Interpreter.php8
3 files changed, 13 insertions, 12 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.');
+}
diff --git a/Visitor/Interpreter.php b/Visitor/Interpreter.php
index 71bec9d..a4a7237 100644
--- a/Visitor/Interpreter.php
+++ b/Visitor/Interpreter.php
@@ -42,10 +42,6 @@ use Hoa\Realdom;
use Hoa\Ustring;
use Hoa\Visitor;
-if (false === Consistency::entityExists('Hoa\Realdom\Disjunction')) {
- Consistency\Autoloader::load('Hoa\Realdom\Disjunction');
-}
-
/**
* Class \Hoa\Praspel\Visitor\Interpreter.
*
@@ -668,3 +664,7 @@ class Interpreter implements Visitor\Visit
return $this->_classnameToBind;
}
}
+
+if (false === Consistency::entityExists('Hoa\Realdom\Disjunction', true)) {
+ throw new Praspel\Exception('Hoa\Realdom seems to not be loaded.');
+}