Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
|
- <?php
-
- namespace Lc\CaracoleBundle\Controller\Site;
-
- use Lc\CaracoleBundle\Controller\AdminControllerTrait;
- use Lc\CaracoleBundle\Factory\Site\PageFactory;
- use Lc\SovBundle\Controller\Site\PageAdminController as SovPageAdminController;
-
- abstract class PageAdminController extends SovPageAdminController
- {
- use AdminControllerTrait;
-
- public function createEntity(string $entityFqcn)
- {
- $factory = new PageFactory();
- $currentSection = $this->get('section_resolver')->getCurrent();
- $factory->setSection($currentSection);
- return $factory->create();
- }
- }
|