Symfony 3 bundle creation always throws “Edit the composer.json file”

后端 未结 3 865
-上瘾入骨i
-上瘾入骨i 2021-02-06 12:00

Hi I\'ve been learning symfony, and every time I use the \"php bin/console generate:bundle\" command to create a bundle, even though I leave everything by default, I keep gettin

3条回答
  •  没有蜡笔的小新
    2021-02-06 12:28

    Only change composer.json:

    Before:

    "psr-4": {
                "AppBundle\\": "src/AppBundle"
            },
    

    After:

    "psr-4": {
                "": "src/"
            },
    

    And finally, run:

    composer dump-autoload
    

提交回复
热议问题