Getting exception while trying to get controller_resolver intance in sonata crud controller
07:09 02 Feb 2026

I have a custom batch actions. And when i use this action in my admin panel, im getting exception.
In this block of code in CRUDController:

$exists = false !== $this->container
            ->get('controller_resolver')
            ->getController(new Request([], [], ['_controller' => $controller]));

call:

$this->container->get('controller_resolver')

return null, because controller_resolver is a private instance.

How can fix this ? And what im doing wrong ?

php symfony sonata