You are not declaring autoloading for classes inside the namespace Application
in your composer.json, so the error must be outside of Composer.
Multiple namespaces with Composer
-
07-08-2022 - |
Frage
The goal
Using Test
and Mobile
namespaces for different directories with Composer.
The problem
Fatal error: Cannot redeclare class Application\Test\Unit in [...] on line 9
The scenario
composer.json:
"autoload": {
"psr-0": {
"Test": "private/app/",
"Mobile": "private/app/"
}
}
Someone can give me an idea to solve this problem?
Keine korrekte Lösung
Andere Tipps
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow