symfony - Updating the composer.phar on Symfony2 -


i have started symfony2 project. need install new bundle, , saw need add new line composer.json , execute update command.

the thing is, composer.phar file , .json on different folders.

/httpdocs/composer.json /bin/composer.phar 

so after add line .json file:

"doctrine/mongodb-odm-bundle": "3.0.*@dev" 

if try /bin/php composer.phar update doctrine/mongodb-odm-bundle got error saying composer.json not there , correct of course. doubt why thoose files in different folders? previous developer make mistake? should move files same folder? bin or httpdocs?

it doesn't matter composer.phar lives. relevant part, current working directory in symfony project (where composer.json lives). simple execute composer (if execute bit set, no call php required).

/bin/composer.phar update doctrine/mongodb-odm-bundle 

Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -