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 687B

3 yıl önce
3 yıl önce
3 yıl önce
12345678910111213141516171819202122
  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\SovBundle\Container\Site\NewsContainer;
  7. use Lc\SovBundle\Controller\Site\NewsAdminController as SovNewsAdminController;
  8. abstract class NewsAdminController extends SovNewsAdminController
  9. {
  10. use AdminControllerTrait;
  11. public function createEntity(string $entityFqcn)
  12. {
  13. return $this->get(NewsContainer::class)
  14. ->getFactory()
  15. ->setMerchant($this->get(MerchantResolver::class)->getCurrent())
  16. ->create();
  17. }
  18. }