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.

23 lines
639B

  1. <?php
  2. namespace Lc\CaracoleBundle\Controller\Reduction;
  3. use Lc\CaracoleBundle\Container\Reduction\ReductionCartContainer;
  4. use Lc\SovBundle\Repository\RepositoryQueryInterface;
  5. use Lc\CaracoleBundle\Controller\AbstractAdminController;
  6. abstract class ReductionCartAdminController extends AbstractAdminController
  7. {
  8. public function getRepositoryQuery() :RepositoryQueryInterface
  9. {
  10. return $this->getReductionCartContainer()->getRepositoryQuery();
  11. }
  12. public function createEntity(string $entityFqcn)
  13. {
  14. return $this->getReductionCartContainer()->getFactory()->create($this->getMerchantCurrent());
  15. }
  16. }