Symfony2 API
Class

Symfony\Component\DependencyInjection\Loader\FileLoader

abstract class FileLoader extends FileLoader

FileLoader is the abstract class used by all built-in loaders that are file based.

Methods

__construct(ContainerBuilder $container, FileLocatorInterface $locator)

Constructor.

setCurrentDir($dir)

from FileLoader
getLocator()

from FileLoader
mixed import(mixed $resource, string $type = null, Boolean $ignoreErrors = false, string $sourceResource = null)

Imports a resource.

from FileLoader

Details

at line 33
public __construct(ContainerBuilder $container, FileLocatorInterface $locator)

Constructor.

Parameters

ContainerBuilder $container A ContainerBuilder instance
FileLocatorInterface $locator A FileLocator instance

in FileLoader at line 41
public setCurrentDir($dir)

Parameters

$dir

in FileLoader at line 46
public getLocator()

in FileLoader at line 61
public mixed import(mixed $resource, string $type = null, Boolean $ignoreErrors = false, string $sourceResource = null)

Imports a resource.

Parameters

mixed $resource A Resource
string $type The resource type
Boolean $ignoreErrors Whether to ignore import errors or not
string $sourceResource The original resource importing the new resource

Return Value

mixed