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.

23 line
684B

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