0
votes

I have a remote repository that I tried to clone locally using

composer install

This worked fine for installing all the bundles and re-creating the parameters.yml, however I get an error right at the end which seems to be related to the change in directory structure from Symfony2->Symfony3:

Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap

Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache

Could not open input file: app/console Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-install-cmd event terminated with an exception

Clearing the cache we can do manually but is this the only issue or would there be anything else being terminated that we should be aware of?

2

2 Answers

0
votes

For me, this was caused by a change in composer.json.

In sf2 there was a config section specifying the binary directory.

In sf3 this all appears in the "extra" section, mine looks like this:

"extra": { "symfony-app-dir": "app", "symfony-bin-dir": "bin", "symfony-var-dir": "var", "symfony-web-dir": "web", "symfony-tests-dir": "tests", "symfony-assets-install": "relative", "incenteev-parameters": { "file": "app/config/parameters.yml" } }

Once I had set symfony-bin-dir to "bin" everything started working.

0
votes

the problem is the path app/console has moved to bin/console in the third version of Symfony