Kernel/BaseKernel.php
protected function configureRoutes(RouteCollectionBuilder $routes)
    {
        foreach ($this->routes as $route) {
            is_array($route)
                ? $routes->add(
                    $route[0],
                    $route[1],
                    $route[2]
                )
                : $routes->import($route);
        }
    }
protected function configureRoutes(RouteCollectionBuilder $routes)
    {
        foreach ($this->routes as $route) {
            is_array($route)
                ? $routes->add(
                    $route[0],
                    $route[1],
                    $route[2]
                )
                : $routes->import($route);
        }
    }
protected function configureRoutes ( RouteCollectionBuilder $ routes ) { foreach ( $ this -> routes as $ route ) { is_array ( $ route ) ? $ routes -> add ( $ route [ 0 ] , $ route [ 1 ] , $ route [ 2 ] ) : $ routes -> import ( $ route ) ; } }
Add or import routes into your application.

$routes->import('config/routing.yml');
$routes->add('/admin', 'AppBundle:Admin:dashboard', 'admin_dashboard');

@param RouteCollectionBuilder $routes
Add or import routes into your application .