Symfony2: --reinstall issue

I am trying to install Buzz for Symfony2. I added it to the deps file and tried to update my providers:

php bin/vendors update 

The command simply tells me that I installed the standard version and that I should try to use:

 php bin/vendors install --reinstall 

instead of this. Which I did.

But then an error appears and tells me:

 Updating deps.lock sh:/var/www/Symfony/vendor/bundles/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php: not found PHP Fatal error: Class 'Doctrine\Common\Annotations\AnnotationRegistry' not found in /var/www/Symfony/app/autoload.php on line 37 PHP Fatal error: Class 'Doctrine\Common\Annotations\AnnotationRegistry' not found in /var/www/Symfony/app/autoload.php on line 37 

And then nothing works, which is not surprising, because the folder of my suppliers is almost empty.

Has anyone encountered this problem before? Any clue on how to fix it?

Edit:

I figured out the origin of this error. I did not have git installed, so I did:

 sudo apt-get install git-core 

Check out this link for more information: http://comments.gmane.org/gmane.comp.php.symfony.symfony2/8239

However, now I have one more error ("Lookes for namespace" buzz.client.curl ", found none"). I am doing another thread for this, as this is not the same problem ( here) .

+4
source share
3 answers

This is not the right way to update your suppliers. Per documents

There is also a php bin/vendors update , but that doesn’t mean anything to update your project, and you usually will not need to use this. This command is used to lock versions of all your provider libraries by updating them to the version specified in deps and writing it to the deps.lock file.

Ergo, all you have to do is run php bin/vendors install (I know this is confusing. I partially blame them for the wrong sub-command name)

EDIT

To resolve current issues, follow these steps:

  • rm -rf vendor/*
  • rm -rf app/cache/*
  • rm app/bootstrap.php.cache
  • php bin/vendors install

Hope this works.

+3
source

Try to delete everything from the "vendor" folder and run

 php bin/vendors install 

Command

+2
source

Before adding the deps file, copy the entire contents of the deps file to any text editor, then delete the entire contents of the deps and add the Buzz link only to deps. Then try the following command

 php bin/vendors install --reinstall 

This will install the BUZZ package safely. After installing the BUzz package, you can paste the entire contents of the fingerprints that you copied earlier. If you are trying to do this, be sure to download the new symfony project and try it. Maybe this will help you. I tried this before in one of my projects.

+2
source

Source: https://habr.com/ru/post/1412813/


All Articles