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

25 行
732B

  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. use Lc\SovBundle\Repository\RepositoryQueryInterface;
  9. abstract class PageAdminController extends SovPageAdminController
  10. {
  11. use AdminControllerTrait;
  12. public function createEntity(string $entityFqcn)
  13. {
  14. return $this->getPageContainer()
  15. ->getFactory()
  16. ->setSection($this->get(SectionResolver::class)->getCurrent())
  17. ->create();
  18. }
  19. }