您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

21 行
550B

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