V
V
Vladimir Mogilev2018-09-03 18:10:58
symfony
Vladimir Mogilev, 2018-09-03 18:10:58

How to connect SonataAdminBundle for Symfony4?

I warn you right away, I'm new to symphonies (and even more so in the 4th vertice) and the question may be stupid.
There is a problem installing the sonata

You have requested a non-existentparameter "sonata.admin.configuration.admin_services".

I did everything according to the instructions but I see this error. I understand that I didn’t add something, but what and where I don’t get it. Or is it in principle a problem for the 4th version ??
Tell me huh?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Mogilev, 2018-09-03
@AkinaySau

As I said earlier, the question is idiotic, I didn’t see that SonataAdminBundle does not register its dependencies in bundle.php, I just saw that SonataDoctrineORMAdminBundle was registered and calmed down. but in fact it was necessary to add more

Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
Sonata\CoreBundle\SonataCoreBundle::class => ['all' => true],
Sonata\BlockBundle\SonataBlockBundle::class => ['all' => true],
Knp\Bundle\MenuBundle\KnpMenuBundle::class => ['all' => true],
Sonata\AdminBundle\SonataAdminBundle::class => ['all' => true],

And all errors are gone.

A
Artemy Lapko, 2018-09-03
@artemylapko

Do not install this bundle, then you will get yourself more problems. It's all good for the time being, until you need to do something of your own.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question