Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

ReminderAdminController.php 779B

pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
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. }