You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- <?php
-
- namespace Lc\CaracoleBundle\Controller\Site;
-
- use Lc\CaracoleBundle\Controller\AdminControllerTrait;
- use Lc\CaracoleBundle\Factory\Site\NewsFactory;
- use Lc\CaracoleBundle\Resolver\MerchantResolver;
- 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()
- ->setMerchant($this->get(MerchantResolver::class)->getCurrent())
- ->create();
- }
- }
|