LoaderInterface
in
LoaderInterface is the interface implemented by all loader classes.
Tags
Table of Contents
Methods
- 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
LoaderResolverInterfaceload()
Loads a resource.
public
load(mixed $resource[, string $type = null ]) : mixed
Parameters
- $resource : mixed
- $type : string = null
Tags
setResolver()
Sets the loader resolver.
public
setResolver(LoaderResolverInterface $resolver) : mixed
Parameters
- $resolver : LoaderResolverInterface
supports()
Returns whether this class supports the given resource.
public
supports(mixed $resource[, string $type = null ]) : bool
Parameters
- $resource : mixed
-
A resource
- $type : string = null