New Symfony 3 installation: Could not open input file: app/console in composer install

前端 未结 4 976
深忆病人
深忆病人 2020-12-07 00:13

I installed a fresh symfony3-instance via the official symfony-installer (http://symfony.com/download). After doing the first things, I commited the project to Git and clone

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-07 01:07

    The ScriptHandler take the dir from the extra config key in the composer.json files names as symfony-bin-dir. So check that the composer contain the correct configuration key, as example:

    composer.json

    ....
    "extra": {
        "symfony-app-dir": "app",
        "symfony-bin-dir": "bin",
        "symfony-var-dir": "var",
        ....
    

    EDIT:

    The problem was related to the cache of composer. It was solved clearing it with the command:

    >php composer.phar clear-cache
    

    Hope this helps.

提交回复
热议问题