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

22 行
636B

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