PPI\Framework\Module\AbstractModule::loadSymfonyRoutes PHP Метод

loadSymfonyRoutes() защищенный Метод

Load up our routes.
protected loadSymfonyRoutes ( string $path ) : RouteCollection
$path string
Результат Symfony\Component\Routing\RouteCollection
    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;
    }