Symfony2 API
Interface

Symfony\Component\Config\Loader\LoaderInterface

interface LoaderInterface

LoaderInterface is the interface implemented by all loader classes.

Methods

load(mixed $resource, string $type = null)

Loads a resource.

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

Returns true if this class supports the given resource.

LoaderResolverInterface getResolver()

Gets the loader resolver.

setResolver(LoaderResolverInterface $resolver)

Sets the loader resolver.

Details

at line 27
public load(mixed $resource, string $type = null)

Loads a resource.

Parameters

mixed $resource The resource
string $type The resource type

at line 37
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

at line 44
public LoaderResolverInterface getResolver()

Gets the loader resolver.

Return Value

LoaderResolverInterface A LoaderResolverInterface instance

at line 51
public setResolver(LoaderResolverInterface $resolver)

Sets the loader resolver.

Parameters

LoaderResolverInterface $resolver A LoaderResolverInterface instance