$aliases
$aliases : array
Class AliasLoader.
The AliasLoader
class is responsible for managing and loading class aliases
within the application. It simplifies the process of creating aliases for
classes, allowing developers to reference them with shorter or more meaningful
names. By utilizing the load
method, all specified aliases can be registered
at once, enhancing code readability and maintainability.
This class follows the singleton pattern by providing a static getInstance
method to instantiate the loader with a given set of aliases.
getInstance(array $aliases) : \Omega\Support\Facade\AliasLoader
Get an instance of AliasLoader.
This static method returns a new instance of the AliasLoader
class,
initialized with the provided aliases. This method allows for convenient
creation of an AliasLoader
instance without the need to instantiate it
directly.
array | $aliases | Holds a associative array where the keys are the alias names and the values are the fully qualified class names. |
Returns a new instance of AliasLoader.