Symfony2 bin/vendors
Asked Answered
F

1

6

When I try to run the following command from my Symfony2 project root

php bin/vendors install

I get the following error:

Could not open input file: bin/vendors

I'm completely new to git and composer and I can't find a way to get this working I wanted to install Doctrine Fixtures Bundle as described in the manual: http://symfony.com/doc/2.0/bundles/DoctrineFixturesBundle/index.html

Fruitless answered 6/10, 2012 at 15:39 Comment(0)
C
13

AFAIK, the newest versions of Symfony2 don't use bin/vendors anymore. Instead they use Composer, which means you might be looking at the 2.0 doc instead of the 2.1.

try adding the following to your composer.json file.

{
    "require": {
        "doctrine/doctrine-fixtures-bundle": "dev-master"
    }
}

then run

$ php composer.phar update
Clinical answered 6/10, 2012 at 16:11 Comment(3)
Also, if you're new to Composer, you will have to find the package names from Packagist for bundles you wish to install in your project.Freelance
Great, this was my first stackoverflow answer, glad I didn't steer ya wrong =pClinical
@Duncan: where is composer.json file. I can't find in Symfony dir inside windows 7 wampStackhouse

© 2022 - 2024 — McMap. All rights reserved.