[TASK] More fixes to the RouterRessource router.

This commit is contained in:
Simon Sessingø
2015-10-06 20:36:24 +02:00
parent cbe1af0ab9
commit 02a874d01c
2 changed files with 33 additions and 9 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ abstract class RouterEntry {
$controller = explode('@', $this->getCallback());
$className = $this->getNamespace() . '\\' . $controller[0];
$class = $this->loadClass($className);
$method = strtolower($requestMethod) . ucfirst($controller[1]);
$method = $requestMethod . ucfirst($controller[1]);
if (!method_exists($class, $method)) {
throw new RouterException(sprintf('Method %s does not exist in class %s', $method, $className), 404);