LoaderInterface
in
LoaderInterface is the interface implemented by all loader classes.
Tags
Table of Contents
- getResolver() : LoaderResolverInterface
- Gets the loader resolver.
- load() : mixed
- Loads a resource.
- setResolver() : mixed
- Sets the loader resolver.
- supports() : bool
- Returns whether this class supports the given resource.
Methods
getResolver()
Gets the loader resolver.
public
getResolver() : LoaderResolverInterface
Return values
LoaderResolverInterface —load()
Loads a resource.
public
load(mixed $resource[, string|null $type = null ]) : mixed
Parameters
- $resource : mixed
-
The resource
- $type : string|null = null
Tags
Return values
mixed —setResolver()
Sets the loader resolver.
public
setResolver(LoaderResolverInterface $resolver) : mixed
Parameters
- $resolver : LoaderResolverInterface
Return values
mixed —supports()
Returns whether this class supports the given resource.
public
supports(mixed $resource[, string|null $type = null ]) : bool
Parameters
- $resource : mixed
-
A resource
- $type : string|null = null