Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The way I handle dependencies in Symfony 2 Git projects is this:</p> <p>The main project is under Git. External dependencies (Bundles and all that vendor stuff) go into the .deps file (or composer.json). Then I either run <code>php bin/vendors install</code> or <code>composer install</code> to install the dependencies.</p> <p>The dependencies will be installed as Git repositories, so, if I wanted to, I could <code>cd</code> into them and commit there and push it if I have rights. This makes editing of your own bundles easier, no need to clone a separate bundle repo just to be able to make changes there.</p> <p>I also have this structure:</p> <pre><code>src\Company\SharedBundle src\Company\ProjectBundle </code></pre> <p>Where <code>SharedBundle</code> is simply specified as a dependency and the target installation path is under <code>src\Company</code>.</p> <p>I am using the <code>SharedBundle</code> in all of my projects. If I need to make changes to it, I do them in one of the projects, then I <code>cd src\Company\SharedBundle</code>, commit to it and push it, and pull from all projects that use it when I need the changes.</p> <p>With <code>deps</code>, you can do targeting like:</p> <pre><code>[AcmeAwesomeBundle] git=http://github.com/johndoe/Acme/AwesomeBundle.git target=../src/Acme/AwesomeBundle </code></pre> <p>If you use Composer, you probably want this: <a href="http://getcomposer.org/doc/01-basic-usage.md#autoloading" rel="nofollow">http://getcomposer.org/doc/01-basic-usage.md#autoloading</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload