Symfony2 API
Interface

Symfony\Component\Config\Loader\LoaderResolverInterface

interface LoaderResolverInterface

LoaderResolverInterface selects a loader for a given resource.

Methods

LoaderInterface|false resolve(mixed $resource, string|null $type = null)

Returns a loader able to load the resource.

Details

at line 29
public LoaderInterface|false resolve(mixed $resource, string|null $type = null)

Returns a loader able to load the resource.

Parameters

mixed $resource A resource
string|null $type The resource type or null if unknown

Return Value

LoaderInterface|false The loader or false if none is able to load the resource