LoaderResolver
class LoaderResolver implements LoaderResolverInterface
LoaderResolver selects a loader for a given resource.
A resource can be anything (e.g. a full path to a config file or a Closure). Each loader determines whether it can load a resource and how.
Methods
__construct(array $loaders = array())
Constructor.
LoaderInterface|false
resolve(mixed $resource, string|null $type = null)
Returns a loader able to load the resource.
getLoaders()
Returns the registered loaders.
Details
at line line 34
__construct(array $loaders = array())
Constructor.
at line line 44
LoaderInterface|false
resolve(mixed $resource, string|null $type = null)
Returns a loader able to load the resource.
at line line 60
addLoader(LoaderInterface $loader)
Adds a loader.
at line line 71
LoaderInterface[]
getLoaders()
Returns the registered loaders.