Skip to content

Commit

Permalink
removed class name as callable
Browse files Browse the repository at this point in the history
  • Loading branch information
potfur committed Nov 30, 2014
1 parent 9c2ed3e commit accdf97
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Moss/Kernel/App.php
Expand Up @@ -345,8 +345,6 @@ private function callController($controller)
if (is_string($controller) && strpos($controller, self::SEPARATOR) !== false) {
list($controller, $action) = explode(self::SEPARATOR, $controller);
$response = $this->callClassController($controller, $action);
} elseif (is_string($controller) && class_exists($controller) && method_exists($controller, '__invoke')) {
$response = $this->callCallableController(new $controller);
} elseif (is_callable($controller)) {
$response = $this->callCallableController($controller);
} else {
Expand Down

0 comments on commit accdf97

Please sign in to comment.