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

3 years ago
3 years ago
3 years ago
3 years ago
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. }