Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
|
- <?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();
- }
- }
|