I am using Symfony 4 Flex.I using this tutorial .
it is my _config/routes/sonata_admin.yaml_
admin_area:
resource: "@SonataAdminBundle/Resources/config/routing/sonata_admin.xml"
prefix: /admin
_sonata_admin:
resource: .
type: sonata_admin
prefix: /admin
it is my config/services.yaml
services:
admin.category:
class: App\Admin\CategoryAdmin
arguments: [~, App\Entity\Category, ~]
tags:
- { name: sonata.admin, manager_type: orm, label: Category }
public: true
when i run my app i have this error .Where is my mistake?
$ php bin/console server:run
In CheckExceptionOnInvalidReferenceBehaviorPass.php line 32:
The service "admin.category" has a dependency on a non-existent service "sonata.admin.manager.
orm".
In Installation Docs in Step 1: Download the Bundle and a Storage Bundle you can see:
You've now downloaded the SonataAdminBundle. While this bundle contains all functionality, it needs storage bundles to be able to communicate with a database. Before using the SonataAdminBundle, you have to download one of these storage bundles. The official storage bundles are:
SonataDoctrineORMAdminBundle (integrates the Doctrine ORM);
SonataDoctrineMongoDBAdminBundle (integrates the Doctrine MongoDB ODM);
SonataDoctrinePhpcrAdminBundle (integrates the Doctrine PHPCR ODM).
You can download them in the same way as the SonataAdminBundle. Please, choose one and follow its installation instructions before proceeding.
Did you do this?
Also, we try to keep Github issues for bug reports and feature requests only. If you have a question, please ask it on Stack Overflow or on #sonata on the symfony-devs slack.
hi.yes it is true.I did not do it.thank you so much.It really made me crazy
@pedramham Do you think we should make it step 1.2? did you just go past that part and did not see it?
This was a terrible mistake.I am new in Symfony 4 Flex.Everything has changed.And this confused me
:-(
This tutorial is great.It was my mistake