How do I have do modify my composer.json to install directly into the src-dir (Symfony/src)?
{
"name": "acme/example-bundle",
"type": "symfony-bundle",
"license": "MIT",
"require": {
"php": ">=5.3.2",
"symfony/framework-bundle": "2.1.*"
},
"suggest": {
"doctrine/doctrine-bundle": "*"
},
"autoload": {
"psr-0": { "Acme": "src/" }
},
"target-dir": "../../src/Acme/ExampleBundle"
}
actually it’s not a good idea to install vendor packages to the src dir because vendor packages should not be edited and the src directory is meant for code that is edited in the development process.
one reason that comes to my mind is that you want do modify these packages. if this is the point, you’d better be off using git submodules because composer only has a one way flow, meaning changes can only come from the source of the vendor package and there is no upstream to the source.
i use git submodules for the bundles in my projects that are not project specific and thus reside in their own git repository but are actively developed during in the project.