protected function loadSymfonyRoutes($path)
    {
        if ($this->routes === null) {
            $loader = new YamlFileLoader(new FileLocator(array(dirname($path))));
            $loader->setDefaults(array('_module' => $this->getName()));

            $routesCollection = $loader->load(pathinfo($path, PATHINFO_FILENAME) . '.' . pathinfo($path, PATHINFO_EXTENSION));
            $this->routes     = $routesCollection;
        }

        return $this->routes;
    }
protected function loadSymfonyRoutes($path)
    {
        if ($this->routes === null) {
            $loader = new YamlFileLoader(new FileLocator(array(dirname($path))));
            $loader->setDefaults(array('_module' => $this->getName()));

            $routesCollection = $loader->load(pathinfo($path, PATHINFO_FILENAME) . '.' . pathinfo($path, PATHINFO_EXTENSION));
            $this->routes     = $routesCollection;
        }

        return $this->routes;
    }
protected function loadSymfonyRoutes ( $ path ) { if ( $ this -> routes === null ) { $ loader = new YamlFileLoader ( new FileLocator ( array ( dirname ( $ path ) ) ) ) ; $ loader -> setDefaults ( array ( '_module' => $ this -> getName ( ) ) ) ; $ routesCollection = $ loader -> load ( pathinfo ( $ path , PATHINFO_FILENAME ) . '.' . pathinfo ( $ path , PATHINFO_EXTENSION ) ) ; $ this -> routes = $ routesCollection ; } return $ this -> routes ; }
Load up our routes.

@param string $path

@return \Symfony\Component\Routing\RouteCollection
Load up our routes .