Closed VincentLanglet closed 3 years ago
Adding @required
annotation to CRUDController:setContainer
and defining the controller public and with autowire to true
, make the controller work, maybe with https://github.com/sonata-project/SonataAdminBundle/pull/6615 it is not necessary the autowiring.
It would be nice to add a test for custom controller in 3.x
(could be using a class and other with service).
It would be nice to add a test for custom controller in
3.x
(could be using a class and other with service).
I can add them, but then it won't work on master ; so we'll have to skip them on master on the next merge until we find a fix.
I think this fixes the issue:
Adding @required annotation to
CRUDController:setContainer
and defining the controller public and with autowire to true, make the controller work, maybe with #6615 it is not necessary the autowiring.
I think this fixes the issue:
Adding @required annotation to
CRUDController:setContainer
and defining the controller public and with autowire to true, make the controller work, maybe with #6615 it is not necessary the autowiring.
Can you approve https://github.com/sonata-project/SonataAdminBundle/pull/6770 then ? Then I'll wait for #6615 to check if it fix the issue :)
Some informations can be found https://github.com/sonata-project/SonataAdminBundle/pull/6770
Both
and
configuration doesn't work.
Only
does.
The error are
It seems related to the fact that we changed how we register the default controller on dependency injection. Before that change it was a Symfony controller that it was not explicitly declared on DI (the old way of registering controllers). After the change it was explicitly declared on DI: https://github.com/sonata-project/SonataAdminBundle/blob/master/src/Resources/config/core.php#L164-L167