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.

23 line
838B

  1. <?php
  2. namespace Lc\CaracoleBundle\Controller\Reminder;
  3. use Lc\CaracoleBundle\Controller\AdminControllerTrait;
  4. use Lc\CaracoleBundle\Resolver\MerchantResolver;
  5. use Lc\CaracoleBundle\Resolver\SectionResolver;
  6. use Lc\SovBundle\Controller\Reminder\ReminderAdminController as SovReminderAdminController;
  7. class ReminderAdminController extends SovReminderAdminController
  8. {
  9. use AdminControllerTrait;
  10. public function createEntity(string $crudAction = null, string $crudControllerFqcn = null, int $entityId = null)
  11. {
  12. return $this->getReminderContainer()
  13. ->getFactory()
  14. ->setMerchant($this->get(MerchantResolver::class)->getCurrent())
  15. ->setSection($this->get(SectionResolver::class)->getCurrent())
  16. ->create($crudAction, $crudControllerFqcn, $entityId);
  17. }
  18. }