services:
  _defaults:
    public: true

  prestashop.adapter.cms_page.command_handler.bulk_disable_cms_page:
    class: PrestaShop\PrestaShop\Adapter\CMS\Page\CommandHandler\BulkDisableCmsPageHandler
    autoconfigure: true

  prestashop.adapter.cms_page.command_handler.bulk_enable_cms_page:
    class: PrestaShop\PrestaShop\Adapter\CMS\Page\CommandHandler\BulkEnableCmsPageHandler
    autoconfigure: true

  prestashop.adapter.cms_page.command_handler.toggle_cms_page_status:
    class: PrestaShop\PrestaShop\Adapter\CMS\Page\CommandHandler\ToggleCmsPageStatusHandler
    autoconfigure: true

  prestashop.adapter.cms_page.query_handler.get_cms_category_id_for_redirection:
    class: PrestaShop\PrestaShop\Adapter\CMS\Page\QueryHandler\GetCmsCategoryIdForRedirectionHandler
    autoconfigure: true

  prestashop.adapter.cms_page.command_handler.delete_cms_page:
    class: PrestaShop\PrestaShop\Adapter\CMS\Page\CommandHandler\DeleteCmsPageHandler
    autoconfigure: true

  prestashop.adapter.cms_page.command_handler.bulk_delete_cms_page:
    class: PrestaShop\PrestaShop\Adapter\CMS\Page\CommandHandler\BulkDeleteCmsPageHandler
    autoconfigure: true

  prestashop.adapter.cms_page.command_handler.add_cms_page_handler:
    class: PrestaShop\PrestaShop\Adapter\CMS\Page\CommandHandler\AddCmsPageHandler
    autoconfigure: true

  prestashop.adapter.cms_page.command_handler.edit_cms_page_handler:
    class: PrestaShop\PrestaShop\Adapter\CMS\Page\CommandHandler\EditCmsPageHandler
    autoconfigure: true

  prestashop.adapter.cms_page.query_handler.get_cms_page_for_editing_handler:
    class: PrestaShop\PrestaShop\Adapter\CMS\Page\QueryHandler\GetCmsPageForEditingHandler
    autoconfigure: true
    arguments:
      - "@=service('prestashop.adapter.legacy.context').getContext().link"
      - "@=service('prestashop.adapter.legacy.context').getContext().language.id"
