[FEATURE] Added ressource controller type

This commit is contained in:
Simon Sessingø
2015-10-06 19:46:07 +02:00
parent 6354c3c766
commit cbe1af0ab9
5 changed files with 99 additions and 12 deletions
@@ -31,11 +31,9 @@ class RouterController extends RouterEntry {
if(count($path)) {
$method = (!isset($path[0]) || trim($path[0]) === '') ? self::DEFAULT_METHOD : $path[0];
$this->method = $method;
array_shift($path);
$this->parameters = $path;
// Set callback
@@ -43,11 +41,8 @@ class RouterController extends RouterEntry {
return $this;
}
}
return null;
}
/**