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.

21 satır
599B

  1. <?php
  2. namespace Lc\CaracoleBundle\Controller\Site;
  3. use Lc\CaracoleBundle\Controller\AdminControllerTrait;
  4. use Lc\CaracoleBundle\Factory\Site\NewsFactory;
  5. use Lc\SovBundle\Controller\Site\NewsAdminController as SovNewsAdminController;
  6. abstract class NewsAdminController extends SovNewsAdminController
  7. {
  8. use AdminControllerTrait;
  9. public function createEntity(string $entityFqcn)
  10. {
  11. $factory = new NewsFactory();
  12. $currentMerchant = $this->get('merchant_resolver')->getCurrent();
  13. $factory->setMerchant($currentMerchant);
  14. return $factory->create();
  15. }
  16. }