- <?php
-
- namespace Lc\CaracoleBundle\Controller\Site;
-
- use Lc\CaracoleBundle\Controller\AdminControllerTrait;
- use Lc\CaracoleBundle\Factory\Site\NewsFactory;
- use Lc\CaracoleBundle\Resolver\MerchantResolver;
- use Lc\CaracoleBundle\Resolver\SectionResolver;
- use Lc\SovBundle\Container\Site\NewsContainer;
- use Lc\SovBundle\Controller\Site\NewsAdminController as SovNewsAdminController;
-
- abstract class NewsAdminController extends SovNewsAdminController
- {
- use AdminControllerTrait;
-
- public function createEntity(string $entityFqcn)
- {
- return $this->get(NewsContainer::class)
- ->getFactory()
- ->setSection($this->get(SectionResolver::class)->getCurrent())
- ->create();
- }
- }
|