|
|
@@ -23,6 +23,7 @@ use Lc\SovBundle\Solver\Setting\SettingSolver; |
|
|
|
use Lc\SovBundle\Translation\FlashBagTranslator; |
|
|
|
use Lc\SovBundle\Translation\TranslatorAdmin; |
|
|
|
use Psr\Log\LoggerInterface; |
|
|
|
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface; |
|
|
|
use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
|
|
|
use Symfony\Component\HttpFoundation\Request; |
|
|
|
use Symfony\Component\HttpFoundation\RequestStack; |
|
|
@@ -48,6 +49,7 @@ trait ControllerTrait |
|
|
|
RequestStack::class => RequestStack::class, |
|
|
|
EventDispatcherInterface::class => EventDispatcherInterface::class, |
|
|
|
LoggerInterface::class => LoggerInterface::class, |
|
|
|
ParameterBagInterface::class => ParameterBagInterface::class, |
|
|
|
TranslatorInterface::class => TranslatorInterface::class, |
|
|
|
TranslatorAdmin::class => TranslatorAdmin::class, |
|
|
|
FilterManager::class => FilterManager::class, |
|
|
@@ -159,6 +161,11 @@ trait ControllerTrait |
|
|
|
return $this->get(EventDispatcherInterface::class); |
|
|
|
} |
|
|
|
|
|
|
|
public function getParameterBag(): ParameterBagInterface |
|
|
|
{ |
|
|
|
return $this->get(ParameterBagInterface::class); |
|
|
|
} |
|
|
|
|
|
|
|
public function getTranslator(): TranslatorInterface |
|
|
|
{ |
|
|
|
return $this->get(TranslatorInterface::class); |