|
|
@@ -22,6 +22,7 @@ use Lc\SovBundle\Repository\EntityRepository; |
|
|
|
use Lc\SovBundle\Solver\Setting\SettingSolver; |
|
|
|
use Lc\SovBundle\Translation\FlashBagTranslator; |
|
|
|
use Lc\SovBundle\Translation\TranslatorAdmin; |
|
|
|
use Mailjet\MailjetSwiftMailer\SwiftMailer\MailjetTransport; |
|
|
|
use Psr\Log\LoggerInterface; |
|
|
|
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface; |
|
|
|
use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
|
|
@@ -54,6 +55,8 @@ trait ControllerTrait |
|
|
|
TranslatorAdmin::class => TranslatorAdmin::class, |
|
|
|
FilterManager::class => FilterManager::class, |
|
|
|
FlashBagTranslator::class => FlashBagTranslator::class, |
|
|
|
MailjetTransport::class => MailjetTransport::class, |
|
|
|
AdminUrlGenerator::class => AdminUrlGenerator::class, |
|
|
|
SettingSolver::class => SettingSolver::class, |
|
|
|
ComponentContainer::class => ComponentContainer::class, |
|
|
|
FileContainer::class => FileContainer::class, |
|
|
@@ -72,7 +75,6 @@ trait ControllerTrait |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function addFlashTranslator( |
|
|
|
string $type, |
|
|
|
$translationKeyName, |
|
|
@@ -181,6 +183,16 @@ trait ControllerTrait |
|
|
|
return $this->get(LoggerInterface::class); |
|
|
|
} |
|
|
|
|
|
|
|
public function getMailjetTransport(): MailjetTransport |
|
|
|
{ |
|
|
|
return $this->get(MailjetTransport::class); |
|
|
|
} |
|
|
|
|
|
|
|
public function getAdminUrlGenerator(): AdminUrlGenerator |
|
|
|
{ |
|
|
|
return $this->get(AdminUrlGenerator::class); |
|
|
|
} |
|
|
|
|
|
|
|
public function getSettingSolver(): SettingSolver |
|
|
|
{ |
|
|
|
return $this->get(SettingSolver::class); |