Symfony\Component\Routing\Loader\FileLoader::import PHP Method

import() public method

Adds routes from a resource.
public import ( mixed $resource ) : RouteCollection
$resource mixed A Resource
return Symfony\Component\Routing\RouteCollection A RouteCollection instance
    public function import($resource)
    {
        $loader = $this->resolve($resource);

        if ($loader instanceof FileLoader && null !== $this->currentDir) {
            $resource = $this->getAbsolutePath($resource, $this->currentDir);
        }

        return $loader->load($resource);
    }