Symfony2 API
Class

Symfony\Component\DependencyInjection\Loader\IniFileLoader

class IniFileLoader extends FileLoader

IniFileLoader loads parameters from INI files.

Methods

__construct(ContainerBuilder $container, FileLocatorInterface $locator)

Constructor.

from FileLoader
load(mixed $file, string $type = null)

Loads a resource.

Boolean supports(mixed $resource, string $type = null)

Returns true if this class supports the given resource.

Details

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

Constructor.

Parameters

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

at line 32
public load(mixed $file, string $type = null)

Loads a resource.

Parameters

mixed $file The resource
string $type The resource type

Exceptions

InvalidArgumentException When ini file is not valid

at line 58
public Boolean supports(mixed $resource, string $type = null)

Returns true if this class supports the given resource.

Parameters

mixed $resource A resource
string $type The resource type

Return Value

Boolean true if this class supports the given resource, false otherwise