Note that there are some explanatory texts on larger screens.

plurals
  1. POSymfony2 vendors and commit reset git
    primarykey
    data
    text
    <p>I have a problem on my vendors using Symfony2.3</p> <p>When I began my project I added vendors to my git repo, now I'd like to remove it.</p> <p>so I do:</p> <pre><code>git rm --cached -r vendor/ </code></pre> <p>This command remove all my vendors from the git repo but I got problems, so I do a git reset to get my vendors back.</p> <p>Now I have a problem I don't know really why, when I'l trying to run a command line via app/console I got this error message:</p> <pre><code>[RuntimeException] The autoloader expected class "FOS\JsRoutingBundle\Command\Command\DumpCommand" to be defined in file "/Users/ant/Documents/projects/test/application/vendor/friendsofsymfony/jsrouting- bundle/FOS/JsRoutingBundle/Command/Command/DumpCommand.php". The file was found but the class was not in it, the class name or namespace probably has a typo. </code></pre> <p>So I tryed to remove jsrouting-bundle from my composer.json but when I run</p> <pre><code>composer.phar update </code></pre> <p>jsrouting-bundle is not removed</p> <p>So I'd like in a first time to remove manually jsrouting-bundle to re-download it.</p> <p>And remove without problems the vendors from my git repo</p> <p>Thanks for your help</p> <p>Edit:</p> <p>I solve the first part:</p> <p>I went to verdor>composer>autoload_namespace.php and I remove this line:</p> <pre><code>'FOS\\JsRoutingBundle' =&gt; array($vendorDir . '/friendsofsymfony/jsrouting-bundle'), </code></pre> <p>I also remove the JsRoutingBundle from the vendor folder and composer reinstall JsRoutingBundle.</p> <p>But I'd like to have a tip to remove my vendor folder properly</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. This table or related slice is empty.
    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