protected function buildRouter()
    {
        // Get the MicroCMS router builder, and build the router.
        $builder = new RouterBuilder(
            $this->container->get('template_resolver'),
            $this->container->get('kernel.config_locator'),
            $this->container->getParameter('kernel.env')
        );

        // Inject logger
        if ($this->container->has('logger')) {
            $builder->setLogger($this->container->get('logger'));
        }

        // Finish Router
        $router = $builder->prepareRouter();

        return($router);
    }
protected function buildRouter()
    {
        // Get the MicroCMS router builder, and build the router.
        $builder = new RouterBuilder(
            $this->container->get('template_resolver'),
            $this->container->get('kernel.config_locator'),
            $this->container->getParameter('kernel.env')
        );

        // Inject logger
        if ($this->container->has('logger')) {
            $builder->setLogger($this->container->get('logger'));
        }

        // Finish Router
        $router = $builder->prepareRouter();

        return($router);
    }
protected function buildRouter ( ) { // Get the MicroCMS router builder, and build the router. $ builder = new RouterBuilder ( $ this -> container -> get ( 'template_resolver' ) , $ this -> container -> get ( 'kernel.config_locator' ) , $ this -> container -> getParameter ( 'kernel.env' ) ) ; // Inject logger if ( $ this -> container -> has ( 'logger' ) ) { $ builder -> setLogger ( $ this -> container -> get ( 'logger' ) ) ; } // Finish Router $ router = $ builder -> prepareRouter ( ) ; return ( $ router ) ; }
buildRouter
Build the router for matching requests to controllers.

@return Symfony\Component\Router\Matcher\RequestMatcherInterface $router
buildRouter Build the router for matching requests to controllers .