|
|
@@ -10,6 +10,7 @@ use Lc\ShopBundle\Context\UserInterface; |
|
|
|
use Lc\ShopBundle\Services\MailUtils; |
|
|
|
use Lc\ShopBundle\Services\UtilsManager; |
|
|
|
use Mailjet\MailjetSwiftMailer\SwiftMailer\MailjetTransport; |
|
|
|
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface; |
|
|
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
|
|
|
use Symfony\Component\Routing\Generator\UrlGeneratorInterface; |
|
|
|
use Symfony\Component\Security\Core\Security; |
|
|
@@ -17,6 +18,16 @@ use Symfony\Contracts\Translation\TranslatorInterface; |
|
|
|
|
|
|
|
class NewsController extends AdminController |
|
|
|
{ |
|
|
|
protected $parameterBag ; |
|
|
|
|
|
|
|
public function __construct(Security $security, UserManagerInterface $userManager, EntityManagerInterface $em, |
|
|
|
MailjetTransport $mailjetTransport, UtilsManager $utilsManager, TranslatorInterface $translator, |
|
|
|
ParameterBagInterface $parameterBag) |
|
|
|
{ |
|
|
|
$this->parameterBag = $parameterBag ; |
|
|
|
parent::__construct($security, $userManager, $em, $mailjetTransport, $utilsManager, $translator); |
|
|
|
} |
|
|
|
|
|
|
|
public function sendTestAction() |
|
|
|
{ |
|
|
|
$newsletter = $this->getNewsletter() ; |