You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

NewsletterAdminController.php 690B

3 years ago
3 years ago
3 years ago
123456789101112131415161718192021
  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. }