Loader
in package
implements
LoaderInterface
AbstractYes
Loader is the abstract class used by all built-in loaders.
Tags
Table of Contents
Interfaces
- LoaderInterface
- LoaderInterface is the interface implemented by all loader classes.
Properties
Methods
- __construct() : mixed
- getResolver() : LoaderResolverInterface
- Gets the loader resolver.
- import() : mixed
- Imports a resource.
- resolve() : LoaderInterface
- Finds a loader able to load an imported resource.
- setResolver() : mixed
- Sets the loader resolver.
Properties
$env
protected
mixed
$env
$resolver
protected
mixed
$resolver
Methods
__construct()
public
__construct([string $env = null ]) : mixed
Parameters
- $env : string = null
getResolver()
Gets the loader resolver.
public
getResolver() : LoaderResolverInterface
Return values
LoaderResolverInterfaceimport()
Imports a resource.
public
import(mixed $resource[, string $type = null ]) : mixed
Parameters
- $resource : mixed
- $type : string = null
resolve()
Finds a loader able to load an imported resource.
public
resolve(mixed $resource[, string $type = null ]) : LoaderInterface
Parameters
- $resource : mixed
- $type : string = null
Tags
Return values
LoaderInterfacesetResolver()
Sets the loader resolver.
public
setResolver(LoaderResolverInterface $resolver) : mixed
Parameters
- $resolver : LoaderResolverInterface