Could not open input file app/console

后端 未结 9 2698
故里飘歌
故里飘歌 2021-02-18 22:54

I installed wamp server and a copy of the Symfony2 framework. I am trying to create a Bundle, using the following command:

php app/console generate:bundle --nam         


        
9条回答
  •  后悔当初
    2021-02-18 23:11

    For newer versions of Symfony (2.4.x or newer) use this method on windows to resolve the problem:

    1. Go to project directory e.g. d:/xampp/symfony2-project/ and open composer.json and place this under requires array "symfony/console": "2.4.*@dev". And save the file.
    2. Open command-line and cd to project's directory.
    3. Use this command to let download and install the dependencies: php path/to/composer.phar install. Remember you should be in your project's directory and path/to/composer.phar is the actual path to your composer.phar file.
    4. Now you are all done, just use php bin/console generate:bundle --namespace=Test/PrintBundle --format=yml

提交回复
热议问题