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.

NewsAdminController.php 733B

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