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

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

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Config/Loader/LoaderResolverInterface.html