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.

22 rindas
690B

  1. <?php
  2. namespace Lc\CaracoleBundle\Controller\Newsletter;
  3. use Lc\CaracoleBundle\Controller\AdminControllerTrait;
  4. use Lc\CaracoleBundle\Resolver\SectionResolver;
  5. use Lc\SovBundle\Container\Newsletter\NewsletterContainer;
  6. use Lc\SovBundle\Controller\Newsletter\NewsletterAdminController as SovNewsletterAdminController;
  7. abstract class NewsletterAdminController extends SovNewsletterAdminController
  8. {
  9. use AdminControllerTrait;
  10. public function createEntity(string $entityFqcn)
  11. {
  12. return $this->get(NewsletterContainer::class)
  13. ->getFactory()
  14. ->setSection($this->get(SectionResolver::class)->getCurrent())
  15. ->create();
  16. }
  17. }