ManagerInterface not found using SonataMediaBundle

I tried to install SonataMediaBundleas described here .
After installation, I get this error:

PHP Fatal error:  Interface 'Sonata\CoreBundle\Model\ManagerInterface' not found in /var/www/prj/vendor/sonata-project/media-bundle/Sonata/MediaBundle/Model/MediaManagerInterface.php on line 20

There is Sonata\CoreBundle\Entity\ManagerInterface, but not Sonata\CoreBundle\Model\ManagerInterface!
What is the problem?

+4
source share
2 answers

Both CoreBundleand AdminBundlehave been updated in recent years, and this namespace has been changed. Until you decide, you can make sure that you are using the latest versions by including these lines in composer.json:

"require": {
    ...
    "sonata-project/core-bundle": "dev-master",
    "sonata-project/media-bundle": "dev-master"
}
+3
source

.json Sonata; https://github.com/sonata-project/sandbox/blob/2.3-develop/composer.json#L45-L63

    "sonata-project/easy-extends-bundle": "~2.1@dev",
    "sonata-project/seo-bundle": "~1@dev",
    "sonata-project/admin-bundle": "~2.2@dev",
    "sonata-project/doctrine-orm-admin-bundle": "~2.2@dev",
    "sonata-project/block-bundle": "~2.2@dev",
    "sonata-project/media-bundle": "~2.2@dev",
    "sonata-project/user-bundle": "~2.2@dev",
    "sonata-project/cache-bundle": "~2.1@dev",
    "sonata-project/page-bundle": "~2.3@dev",
    "sonata-project/core-bundle": "~2.2@dev",

core-bundle ": " ~2.2@dev ",

+1

All Articles