AliasLoader
Properties
$aliases array
The array of class aliases.
$registered bool
Indicates if a loader has been registered.
$facadeNamespace string
The namespace for all real-time facades.
Methods
__construct ( $aliases ) : void
Create a new AliasLoader instance.
Parameters
- $aliases array
getInstance ( array $aliases ) : AliasLoader
Get or create the singleton alias loader instance.
Parameters
- $aliases array
load ( $alias ) : bool|null
Load a class alias if it is registered.
Parameters
- $alias string
loadFacade ( $alias ) : void
Load a real-time facade for the given alias.
Parameters
- $alias string
ensureFacadeExists ( $alias ) : string
Ensure that the given alias has an existing real-time facade class.
Parameters
- $alias string
formatFacadeStub ( $alias , $stub ) : string
Format the facade stub with the proper namespace and class.
Parameters
- $alias string
- $stub string
alias ( $alias , $class ) : void
Add an alias to the loader.
Parameters
- $alias string
- $class string
register ( ) : void
Register the loader on the auto-loader stack.
prependToLoaderStack ( ) : void
Prepend the load method to the auto-loader stack.
getAliases ( ) : array
Get the registered aliases.
setAliases ( array $aliases ) : void
Set the registered aliases.
Parameters
- $aliases array
isRegistered ( ) : bool
Indicates if the loader has been registered.
setRegistered ( $value ) : void
Set the "registered" state of the loader.
Parameters
- $value bool
setFacadeNamespace ( $namespace ) : void
Set the real-time facade namespace.
Parameters
- $namespace string
setInstance ( $loader ) : void
Set the value of the singleton alias loader.
Parameters
- $loader AliasLoader
__clone ( ) : void
Clone method.