summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Škvorc <bruno@skvorc.me>2016-01-31 21:33:42 +0100
committerBruno Škvorc <bruno@skvorc.me>2016-01-31 21:33:42 +0100
commit0ec24e89ccc85b6ab1a83af7d086e95bbcdd5f44 (patch)
treedda0e4add2afc3797a6205352f98028b4f28d995
parent997554be7c6d108a39a1c85f338e8c6b0626ee5e (diff)
downloadgatekeeper-0ec24e89ccc85b6ab1a83af7d086e95bbcdd5f44.zip
gatekeeper-0ec24e89ccc85b6ab1a83af7d086e95bbcdd5f44.tar.gz
gatekeeper-0ec24e89ccc85b6ab1a83af7d086e95bbcdd5f44.tar.bz2
Update FindBy.php
Typo in namespace breaks the app.
-rw-r--r--src/Psecio/Gatekeeper/Handler/FindBy.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Psecio/Gatekeeper/Handler/FindBy.php b/src/Psecio/Gatekeeper/Handler/FindBy.php
index a2504e8..f943315 100644
--- a/src/Psecio/Gatekeeper/Handler/FindBy.php
+++ b/src/Psecio/Gatekeeper/Handler/FindBy.php
@@ -86,7 +86,7 @@ class FindBy extends \Psecio\Gatekeeper\Handler
$model = substr($name, 0, strlen($name) - 1);
$collectionNs = '\\Psecio\\Gatekeeper\\'.$model.'Collection';
if (!class_exists($collectionNs)) {
- throw new \Psecio\Gatekepper\Exception\ModelNotFoundException('Collection type '.$model.' could not be found');
+ throw new \Psecio\Gatekeeper\Exception\ModelNotFoundException('Collection type '.$model.' could not be found');
}
$model = g::modelFactory($model.'Model');
$collection = new $collectionNs($this->getDb());
@@ -94,4 +94,4 @@ class FindBy extends \Psecio\Gatekeeper\Handler
return $collection;
}
-} \ No newline at end of file
+}