Component/HttpKernel/Kernel.php
public function getRouting(Request $request)
    {
        // Check if router class has been defined in config parameters
        if ($this->getConfig()->hasParameter('routing')) {
            $routerClass = $this->getConfig()->getParameter('routing');

            $router = new $routerClass();

            return $router;
        }

        $router = new Router($request);

        return $router;
    }
public function getRouting(Request $request)
    {
        // Check if router class has been defined in config parameters
        if ($this->getConfig()->hasParameter('routing')) {
            $routerClass = $this->getConfig()->getParameter('routing');

            $router = new $routerClass();

            return $router;
        }

        $router = new Router($request);

        return $router;
    }
public function getRouting ( Request $ request ) { // Check if router class has been defined in config parameters if ( $ this -> getConfig ( ) -> hasParameter ( 'routing' ) ) { $ routerClass = $ this -> getConfig ( ) -> getParameter ( 'routing' ) ; $ router = new $ routerClass ( ) ; return $ router ; } $ router = new Router ( $ request ) ; return $ router ; }
Gets routing system.

@return RouterInterface
Gets routing system .