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.

21 satır
595B

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