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 990B

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
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
12345678910111213141516171819202122232425
  1. <?php
  2. namespace Lc\CaracoleBundle\Controller\Reminder;
  3. use App\Entity\Reminder\Reminder;
  4. use Lc\CaracoleBundle\Controller\AdminControllerTrait;
  5. use Lc\CaracoleBundle\Factory\Reminder\ReminderFactory;
  6. use Lc\CaracoleBundle\Resolver\MerchantResolver;
  7. use Lc\CaracoleBundle\Resolver\SectionResolver;
  8. use Lc\SovBundle\Container\Reminder\ReminderContainer;
  9. use Lc\SovBundle\Controller\Reminder\ReminderAdminController as SovReminderAdminController;
  10. class ReminderAdminController extends SovReminderAdminController
  11. {
  12. use AdminControllerTrait;
  13. public function createEntity(string $crudAction = null, string $crudControllerFqcn = null, int $entityId = null)
  14. {
  15. return $this->get(ReminderContainer::class)
  16. ->getFactory()
  17. ->setMerchant($this->get(MerchantResolver::class)->getCurrent())
  18. ->setSection($this->get(SectionResolver::class)->getCurrent())
  19. ->create($crudAction, $crudControllerFqcn, $entityId);
  20. }
  21. }