public function flush()
    {
        if (null === $this->routesFactory) {
            $routes = new RouteCollection();
        } else {
            $routes = $this->routesFactory;
        }

        return $this->doFlush('', $routes);
    }
public function flush()
    {
        if (null === $this->routesFactory) {
            $routes = new RouteCollection();
        } else {
            $routes = $this->routesFactory;
        }

        return $this->doFlush('', $routes);
    }
public function flush ( ) { if ( null === $ this -> routesFactory ) { $ routes = new RouteCollection ( ) ; } else { $ routes = $ this -> routesFactory ; } return $ this -> doFlush ( '' , $ routes ) ; }
Persists and freezes staged controllers.

@return RouteCollection A RouteCollection instance
Persists and freezes staged controllers .