services:
  _defaults:
    public: true

  prestashop.bundle.grid.response_builder:
    class: PrestaShopBundle\Service\Grid\ResponseBuilder
    arguments:
      - '@prestashop.core.grid.filter.form_factory'
      - '@router'
      - '@prestashop.core.admin.admin_filter.repository'
      - '@=service("prestashop.adapter.legacy.context").getContext().employee.id'
      - '@=service("prestashop.adapter.legacy.context").getContext().shop.id'
      - '@session'

  prestashop.bundle.grid.controller_response_builder:
    class: PrestaShopBundle\Service\Grid\ControllerResponseBuilder
    arguments:
      - '@prestashop.core.grid.filter.form_factory'
      - '@router'
