PHP Luminova: Modules Autoloading and Class Aliases Configuration
Configure class aliases and PSR-4 namespace mappings for your application.
The app/Config/Modules.php file returns an array of class aliases and PSR-4 mappings. Enable alias loading with feature.app.class.alias=true and PSR-4 mapping with feature.app.autoload.psr4=true in the application environment.
- File path:
/app/Config/Modules.php
return [
'alias' => [
//'Foo' => 'SomeClass\ExampleFoo',
],
'psr-4' => [
//'Example\MyNamespace' => '/example/MyClass/',
]
];