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 744B

3 年之前
3 年之前
3 年之前
3 年之前
12345678910111213141516171819202122
  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. use Lc\SovBundle\Repository\RepositoryQueryInterface;
  8. abstract class NewsletterAdminController extends SovNewsletterAdminController
  9. {
  10. use AdminControllerTrait;
  11. public function createEntity(string $entityFqcn)
  12. {
  13. return $this->get(NewsletterContainer::class)
  14. ->getFactory()
  15. ->setSection($this->get(SectionResolver::class)->getCurrent())
  16. ->create();
  17. }
  18. }