Documentation

LoaderResolver
in package
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.

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

Interfaces

LoaderResolverInterface
LoaderResolverInterface selects a loader for a given resource.

Properties

$loaders  : array<string|int, LoaderInterface>

Methods

__construct()  : mixed
addLoader()  : mixed
getLoaders()  : array<string|int, LoaderInterface>
Returns the registered loaders.
resolve()  : LoaderInterface|false
Returns a loader able to load the resource.

Properties

Methods

resolve()

Returns a loader able to load the resource.

public resolve(mixed $resource[, string $type = null ]) : LoaderInterface|false
Parameters
$resource : mixed
$type : string = null

The resource type or null if unknown

Return values
LoaderInterface|false

        
On this page

Search results