Skip to content

Parse composer.json autoload -> psr-4 section #2

Description

@vitalyiegorov

Add modules from psr-4 section to modules list, first of all this will generate correct automatic PSR-4 compliant class autoloader by composer, from other side we will avoid manual loading of modules from "src/" in www/index.php.

No more "dump-autoload" after new class creation.

Limitation, all modules in src should have global namespace prefix for whole project
Profit: auto class loading by composer on creation - no errors, one declaration in composer.json of all dependencies - one file for dependency management

@nik-os What do you think?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions