src/Route.php
private function parseCallableController($controller, $container)
    {
        $controller  = rtrim($this->namespace, "\\") . "\\" . $this->parseCallablePlaceholders($controller);

        if ($container === null) {
               return new $controller;
        } else return $container($controller);
    }
private function parseCallableController($controller, $container)
    {
        $controller  = rtrim($this->namespace, "\\") . "\\" . $this->parseCallablePlaceholders($controller);

        if ($container === null) {
               return new $controller;
        } else return $container($controller);
    }
private function parseCallableController ( $ controller , $ container ) { $ controller = rtrim ( $ this -> namespace , "\\" ) . "\\" . $ this -> parseCallablePlaceholders ( $ controller ) ; if ( $ container === null ) { return new $ controller ; } else return $ container ( $ controller ) ; }
Get the controller object.

@param string $controller
@param callable $container

@return Object
Get the controller object .