public function makeController($controller)
    {
        $namespace = $this->router->getNamespace();

        $classname = "{$namespace}\\{$controller}";

        if (class_exists($classname)) {
            return $this->container->make($classname);
        }

        throw new RoutingException("Controller [{$classname}] do not exists.");
    }
public function makeController($controller)
    {
        $namespace = $this->router->getNamespace();

        $classname = "{$namespace}\\{$controller}";

        if (class_exists($classname)) {
            return $this->container->make($classname);
        }

        throw new RoutingException("Controller [{$classname}] do not exists.");
    }
public function makeController ( $ controller ) { $ namespace = $ this -> router -> getNamespace ( ) ; $ classname = "{$namespace}\\{$controller}" ; if ( class_exists ( $ classname ) ) { return $ this -> container -> make ( $ classname ) ; } throw new RoutingException ( "Controller [{$classname}] do not exists." ) ; }
Makes controller instance.

@throws \Assely\Routing\RoutingException

@return \Assely\Routing\Controller
Makes controller instance .