Luminova Framework

PHP Luminova: Modules Autoloading and Class Aliases Configuration

Last updated: 2026-11-28 20:57:12

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/',
    ]
];