- <?php
-
- namespace Lc\CaracoleBundle\Controller\Newsletter;
-
- use Lc\CaracoleBundle\Controller\AdminControllerTrait;
- use Lc\CaracoleBundle\Factory\Newsletter\NewsletterFactory;
- use Lc\CaracoleBundle\Resolver\MerchantResolver;
- use Lc\SovBundle\Container\Newsletter\NewsletterContainer;
- use Lc\SovBundle\Controller\Newsletter\NewsletterAdminController as SovNewsletterAdminController;
-
- abstract class NewsletterAdminController extends SovNewsletterAdminController
- {
- use AdminControllerTrait;
-
- public function createEntity(string $entityFqcn)
- {
- return $this->get(NewsletterContainer::class)
- ->getFactory()
- ->setMerchant($this->get(MerchantResolver::class)->getCurrent())
- ->create();
- }
- }
|