I'm following the official upgrade guide from 5.1 to 5.2. First sub-section says:
If you are installing a beta release of Laravel 5.2, add
"minimum-stability": "beta"
to your composer.json file.Update your composer.json file to point to
laravel/framework 5.2.*
.Add
symfony/dom-crawler ~3.0
andsymfony/css-selector ~3.0
to the require-dev section of your composer.json file.
Now, after I introduce the above changes and run composer update
, I get the following error(s):
PHP Fatal error: Class 'Illuminate\Routing\ControllerServiceProvider' not found
in /home/vagrant/Code/myproject/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 146
and
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Illuminate\Routing\ControllerServiceProvider' not found
and
[RuntimeException]
Error Output: PHP Fatal error: Class 'Illuminate\Routing\ControllerServiceProvider' not found in /home/vagrant/Code/myproject/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 146
The errors are thrown after the update is done, and "Generating autoload files" takes place.
What might be wrong?
It does not look like a custom package issue, but a core one. Should I continue with the upgrade guide and run composer update
AFTER all has been adjusted to suit the new framework version?
UPDATE
Running composer dump-autoload
afterwards doesn't throw the errors described above. Still confusing, though.