Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

26 lines
990B

  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. }