class AliasLoader (View source)
protected array | $aliases | The array of class aliases. | |
protected bool | $registered | Indicates if a loader has been registered. | |
static protected string | $facadeNamespace | The namespace for all real-time facades. | |
static protected AliasLoader | $instance | The singleton instance of the loader. |
static AliasLoader | getInstance(array $aliases = []) Get or create the singleton alias loader instance. | |
bool|null | load(string $alias) Load a class alias if it is registered. | |
void | loadFacade(string $alias) Load a real-time facade for the given alias. | |
string | ensureFacadeExists(string $alias) Ensure that the given alias has an existing real-time facade class. | |
string | formatFacadeStub(string $alias, string $stub) Format the facade stub with the proper namespace and class. | |
void | alias(string $alias, string $class) Add an alias to the loader. | |
void | register() Register the loader on the auto-loader stack. | |
void | prependToLoaderStack() Prepend the load method to the auto-loader stack. | |
array | getAliases() Get the registered aliases. | |
void | setAliases(array $aliases) Set the registered aliases. | |
bool | isRegistered() Indicates if the loader has been registered. | |
void | setRegistered(bool $value) Set the "registered" state of the loader. | |
static void | setFacadeNamespace(string $namespace) Set the real-time facade namespace. | |
static void | setInstance(AliasLoader $loader) Set the value of the singleton alias loader. |
Get or create the singleton alias loader instance.
Load a class alias if it is registered.
Load a real-time facade for the given alias.
Ensure that the given alias has an existing real-time facade class.
Format the facade stub with the proper namespace and class.
Add an alias to the loader.
Register the loader on the auto-loader stack.
Prepend the load method to the auto-loader stack.
Get the registered aliases.
Set the registered aliases.
Indicates if the loader has been registered.
Set the "registered" state of the loader.
Set the real-time facade namespace.
Set the value of the singleton alias loader.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Foundation/AliasLoader.html