ClassAliasAutoloader
in package
Table of Contents
- $classes : array<string|int, mixed>
- All of the discovered classes.
- $shell : Shell
- The shell instance.
- __construct() : void
- Create a new alias loader instance.
- __destruct() : void
- Handle the destruction of the instance.
- aliasClass() : void
- Find the closest class by name.
- register() : static
- Register a new alias loader instance.
- unregister() : void
- Unregister the alias loader instance.
Properties
$classes
All of the discovered classes.
protected
array<string|int, mixed>
$classes
= []
$shell
The shell instance.
protected
Shell
$shell
Methods
__construct()
Create a new alias loader instance.
public
__construct(Shell $shell, string $classMapPath) : void
Parameters
- $shell : Shell
- $classMapPath : string
Return values
void —__destruct()
Handle the destruction of the instance.
public
__destruct() : void
Return values
void —aliasClass()
Find the closest class by name.
public
aliasClass(string $class) : void
Parameters
- $class : string
Return values
void —register()
Register a new alias loader instance.
public
static register(Shell $shell, string $classMapPath) : static
Parameters
- $shell : Shell
- $classMapPath : string
Return values
static —unregister()
Unregister the alias loader instance.
public
unregister() : void