문제

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?

올바른 솔루션이 없습니다

다른 팁

You are not declaring autoloading for classes inside the namespace Application in your composer.json, so the error must be outside of Composer.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top