protected function getHttpRoutesInfos()
    {
        Router::clearResolvedInstances();

        $cliRouter = $this->router;
        $cliDispatcher = $this->dispatcher;

        $this->di->remove(Services::ROUTER);
        $this->di->remove(Services::DISPATCHER);

        $httpRouterProvider = new \Neutrino\Providers\Http\Router;
        $httpRouterProvider->registering();
        $httpDispatcherProvider = new \Neutrino\Providers\Http\Dispatcher;
        $httpDispatcherProvider->registering();

        require BASE_PATH . '/routes/http.php';
        /** @var \Phalcon\Mvc\Dispatcher $httpDispatcher */
        $httpDispatcher = $this->di->get(Services::DISPATCHER);
        $reflexionProperty = (new \ReflectionClass(get_class($httpDispatcher)))->getProperty('_handlerSuffix');
        $reflexionProperty->setAccessible(true);

        $routes = Router::getRoutes();
        $defaults = Router::getDefaults();
        $actionSuffix = $httpDispatcher->getActionSuffix();
        $controllerSuffix = $reflexionProperty->getValue($httpDispatcher);

        Router::clearResolvedInstances();

        $this->di->remove(Services::ROUTER);
        $this->di->remove(Services::DISPATCHER);

        $this->di->setShared(Services::ROUTER, $cliRouter);
        $this->di->setShared(Services::DISPATCHER, $cliDispatcher);

        return [
            'routes'           => $routes,
            'defaults'         => $defaults,
            'actionSuffix'     => $actionSuffix,
            'controllerSuffix' => $controllerSuffix,
        ];
    }
protected function getHttpRoutesInfos()
    {
        Router::clearResolvedInstances();

        $cliRouter = $this->router;
        $cliDispatcher = $this->dispatcher;

        $this->di->remove(Services::ROUTER);
        $this->di->remove(Services::DISPATCHER);

        $httpRouterProvider = new \Neutrino\Providers\Http\Router;
        $httpRouterProvider->registering();
        $httpDispatcherProvider = new \Neutrino\Providers\Http\Dispatcher;
        $httpDispatcherProvider->registering();

        require BASE_PATH . '/routes/http.php';
        /** @var \Phalcon\Mvc\Dispatcher $httpDispatcher */
        $httpDispatcher = $this->di->get(Services::DISPATCHER);
        $reflexionProperty = (new \ReflectionClass(get_class($httpDispatcher)))->getProperty('_handlerSuffix');
        $reflexionProperty->setAccessible(true);

        $routes = Router::getRoutes();
        $defaults = Router::getDefaults();
        $actionSuffix = $httpDispatcher->getActionSuffix();
        $controllerSuffix = $reflexionProperty->getValue($httpDispatcher);

        Router::clearResolvedInstances();

        $this->di->remove(Services::ROUTER);
        $this->di->remove(Services::DISPATCHER);

        $this->di->setShared(Services::ROUTER, $cliRouter);
        $this->di->setShared(Services::DISPATCHER, $cliDispatcher);

        return [
            'routes'           => $routes,
            'defaults'         => $defaults,
            'actionSuffix'     => $actionSuffix,
            'controllerSuffix' => $controllerSuffix,
        ];
    }
protected function getHttpRoutesInfos ( ) { Router :: clearResolvedInstances ( ) ; $ cliRouter = $ this -> router ; $ cliDispatcher = $ this -> dispatcher ; $ this -> di -> remove ( Services :: ROUTER ) ; $ this -> di -> remove ( Services :: DISPATCHER ) ; $ httpRouterProvider = new \ Neutrino \ Providers \ Http \ Router ; $ httpRouterProvider -> registering ( ) ; $ httpDispatcherProvider = new \ Neutrino \ Providers \ Http \ Dispatcher ; $ httpDispatcherProvider -> registering ( ) ; require BASE_PATH . '/routes/http.php' ; /** @var \Phalcon\Mvc\Dispatcher $httpDispatcher */ $ httpDispatcher = $ this -> di -> get ( Services :: DISPATCHER ) ; $ reflexionProperty = ( new \ ReflectionClass ( get_class ( $ httpDispatcher ) ) ) -> getProperty ( '_handlerSuffix' ) ; $ reflexionProperty -> setAccessible ( true ) ; $ routes = Router :: getRoutes ( ) ; $ defaults = Router :: getDefaults ( ) ; $ actionSuffix = $ httpDispatcher -> getActionSuffix ( ) ; $ controllerSuffix = $ reflexionProperty -> getValue ( $ httpDispatcher ) ; Router :: clearResolvedInstances ( ) ; $ this -> di -> remove ( Services :: ROUTER ) ; $ this -> di -> remove ( Services :: DISPATCHER ) ; $ this -> di -> setShared ( Services :: ROUTER , $ cliRouter ) ; $ this -> di -> setShared ( Services :: DISPATCHER , $ cliDispatcher ) ; return [ 'routes' => $ routes , 'defaults' => $ defaults , 'actionSuffix' => $ actionSuffix , 'controllerSuffix' => $ controllerSuffix , ] ; }
List the Http Routes

@return array
List the Http Routes