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.

24 lines
546B

  1. <?php
  2. namespace Lc\CaracoleBundle\Factory\Site;
  3. use Lc\CaracoleBundle\Factory\MerchantFactoryTrait;
  4. use Lc\CaracoleBundle\Factory\SectionFactoryTrait;
  5. use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
  6. use Lc\SovBundle\Factory\Site\NewsFactory as SovNewsFactory;
  7. use Lc\SovBundle\Model\Site\NewsInterface;
  8. class NewsFactory extends SovNewsFactory
  9. {
  10. use SectionFactoryTrait;
  11. public function create(): NewsInterface
  12. {
  13. $news = parent::create();
  14. $news->setSection($this->section);
  15. return $news;
  16. }
  17. }