Alias legacy Zend Framework project classes/interfaces/traits to Laminas equivalents.
◆ createAppendAutoloader()
static createAppendAutoloader |
( |
array |
$namespaces, |
|
|
ArrayObject |
$loaded |
|
) |
| |
|
staticprivate |
- Renvoie
- callable
- Paramètres
-
string | $class | Class name to autoload |
- Renvoie
- void
Références $check, $class, et $i.
◆ createPrependAutoloader()
static createPrependAutoloader |
( |
array |
$namespaces, |
|
|
ClassLoader |
$classLoader, |
|
|
ArrayObject |
$loaded |
|
) |
| |
|
staticprivate |
◆ getClassLoader()
static getClassLoader |
( |
| ) |
|
|
staticprivate |
- Renvoie
- ClassLoader
- Exceptions
-
Références __DIR__.
◆ load()
Attach autoloaders for managing legacy ZF artifacts.
We attach two autoloaders:
- The first is prepended to handle new classes and add aliases for legacy classes. PHP expects any interfaces implemented, classes extended, or traits used when declaring class_alias() to exist and/or be autoloadable already at the time of declaration. If not, it will raise a fatal error. This autoloader helps mitigate errors in such situations.
- The second is appended in order to create aliases for legacy classes.
Références RewriteRules\namespaceReverse(), et RewriteRules\namespaceRewrite().
La documentation de cette classe a été générée à partir du fichier suivant :