[FEATURE] csrf token

- Removed request-type prefix when loading methods.
- Optimised csrf token class.
This commit is contained in:
Simon Sessingø
2015-10-21 17:09:31 +02:00
parent 961d73a13f
commit c221381c02
2 changed files with 10 additions and 36 deletions
+1 -1
View File
@@ -269,7 +269,7 @@ abstract class RouterEntry {
$className = $this->getNamespace() . '\\' . $controller[0];
$class = $this->loadClass($className);
$method = $request->getMethod() . ucfirst($controller[1]);
$method = $controller[1];
if (!method_exists($class, $method)) {
throw new RouterException(sprintf('Method %s does not exist in class %s', $method, $className), 404);