DelegatingLoader
class DelegatingLoader extends Loader
DelegatingLoader delegates loading to other loaders using a loader resolver.
This loader acts as an array of LoaderInterface objects - each having a chance to load a given resource (handled by the resolver)
Properties
protected | $resolver | from Loader |
Methods
$this|LoaderInterface
resolve(mixed $resource, string|null $type = null)
Finds a loader able to load an imported resource.
from Loader
load(mixed $resource, string|null $type = null)
Loads a resource.
bool
supports(mixed $resource, string|null $type = null)
Returns whether this class supports the given resource.
Details
$this|LoaderInterface
resolve(mixed $resource, string|null $type = null)
Finds a loader able to load an imported resource.