original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Load up our routes.
  
  @param string $path
  
  @return \Symfony\Component\Routing\RouteCollection
docstring_tokens: Load up our routes .