|
12345678910111213141516171819 |
- <?php
-
- namespace Lc\CaracoleBundle\Controller\Site;
-
- use Lc\CaracoleBundle\Controller\ControllerTrait;
- use Lc\SovBundle\Controller\Site\NewsAdminController as SovNewsAdminController;
-
- abstract class NewsAdminController extends SovNewsAdminController
- {
- use ControllerTrait;
-
- public function createEntity(string $entityFqcn)
- {
- return $this->getNewsContainer()
- ->getFactory()
- ->setSection($this->getSectionCurrent())
- ->create();
- }
- }
|