I have a few errors during installation of Sonata Media Bundle on Symfony 4 application which had no place with Symfony 2.8.
The first error:
sensio/generator-bundle v3.1.6 requires symfony/framework-bundle ~2.7|~3.0
Next one, after solving the previous:
- php-amqplib/php-amqplib v2.7.0 requires ext-bcmath * -> the requested PHP extension bcmath is missing from your system.
Another one:
Unrecognized options "naming_strategy, auto_mapping, mappings" under "doctrine.orm"
And then, when I tried to clear the cache:
Class Application\Sonata\MediaBundle\ApplicationSonataMediaBundle not found in home/user/projects/svoya-fignia/config/services.yaml (which is loaded in resource "/home/user/projects/svoya-fignia/config/services.yaml").
or this one
Class Sonata\MediaBundle\PHPCR\BaseGalleryHasMediaRepository not found in home/user/projects/svoya-fignia/config/services.yaml (which is loaded in resource "/home/user/projects/svoya-fignia/config/services.yaml").