您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ReminderAdminController.php 838B

3 年前
3 年前
3 年前
3 年前
12345678910111213141516171819202122
  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. }