|
12345678910111213141516171819 |
- <?php
-
- namespace Lc\CaracoleBundle\Controller\Newsletter;
-
- use Lc\CaracoleBundle\Controller\AdminControllerTrait;
- use Lc\CaracoleBundle\Factory\Newsletter\NewsletterFactory;
- use Lc\SovBundle\Controller\Newsletter\NewsletterAdminController as SovNewsletterAdminController;
-
- abstract class NewsletterAdminController extends SovNewsletterAdminController
- {
- use AdminControllerTrait;
-
- public function createEntity(string $entityFqcn)
- {
- $factory = new NewsletterFactory();
- $factory->setMerchant($this->get('merchant_resolver')->getCurrent());
- return $factory->create();
- }
- }
|