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.

ReminderAdminController.php 779B

3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
123456789101112131415161718192021
  1. <?php
  2. namespace Lc\CaracoleBundle\Controller\Reminder;
  3. use Lc\CaracoleBundle\Controller\AdminControllerTrait;
  4. use Lc\CaracoleBundle\Factory\Reminder\ReminderFactory;
  5. use Lc\SovBundle\Controller\Reminder\ReminderAdminController as SovReminderAdminController;
  6. class ReminderAdminController extends SovReminderAdminController
  7. {
  8. use AdminControllerTrait;
  9. public function createEntity(string $crudAction = null, string $crudControllerFqcn = null, int $entityId = null)
  10. {
  11. $factory = new ReminderFactory();
  12. return $factory
  13. ->setMerchant($this->get('merchant_resolver')->getCurrent())
  14. ->setSection($this->get('section_resolver')->getCurrent())
  15. ->create($crudAction, $crudControllerFqcn, $entityId);
  16. }
  17. }