Every time I creating new module I should add it to composer by this way:
"autoload": {
"psr-4": {
"Application\\": "module/Application/src/",
"Album\\": "module/Album/src/",
"Blog\\": "module/Blog/src/"
}
},
I want enable and disable my modules from the database. Does exist another way of autoloading modules besides adding them to the composer.json? I am searching for a best practice of this.