src/PHPDish/Bundle/CoreBundle/Application/Plugin/Routing/RoutingLoader.php
public function load($resource, $type = null)
    {
        $routes = new RouteCollection();

        foreach ($this->routerResources as $resource) {
            $type = pathinfo($resource, PATHINFO_EXTENSION);
            if ($type === 'yml') {
                $type = 'yaml';
            }
            $importedRoutes = $this->import($resource, $type);
            $routes->addCollection($importedRoutes);
        }

        return $routes;
    }
public function load($resource, $type = null)
    {
        $routes = new RouteCollection();

        foreach ($this->routerResources as $resource) {
            $type = pathinfo($resource, PATHINFO_EXTENSION);
            if ($type === 'yml') {
                $type = 'yaml';
            }
            $importedRoutes = $this->import($resource, $type);
            $routes->addCollection($importedRoutes);
        }

        return $routes;
    }
{@inheritdoc}