---
admin_security:
  path: /
  methods: [ GET ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\SecurityController::indexAction'
    _legacy_controller: AdminSecurity
    _legacy_link: AdminSecurity

admin_security_general_save:
  path: /general
  methods: [ POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\SecurityController::processGeneralFormAction'
    _legacy_controller: AdminSecurity
    _legacy_link: AdminSecurity

admin_security_password_policy_save:
  path: /password-policy
  methods: [ POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\SecurityController::processPasswordPolicyFormAction'
    _legacy_controller: AdminSecurity
    _legacy_link: AdminSecurity

admin_security_sessions_customer_clear:
  path: /session/customer/clear
  methods: [ GET ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\SecurityController::clearCustomerSessionAction'
    _legacy_controller: AdminSecuritySessionCustomer
    _legacy_link: AdminSecuritySessionCustomer

admin_security_sessions_customer_list:
  path: /session/customer
  methods: [ GET ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\SecurityController::customerSessionAction'
    _legacy_controller: AdminSecuritySessionCustomer
    _legacy_link: AdminSecuritySessionCustomer

admin_security_sessions_customer_delete:
  path: /session/customer/{sessionId}
  methods: [ DELETE ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\SecurityController::deleteCustomerSessionAction'
    _legacy_controller: AdminSecuritySessionCustomer
    _legacy_link: AdminSecuritySessionCustomer
  requirements:
    sessionId: \d+

admin_security_sessions_employee_clear:
  path: /session/employee/clear
  methods: [ GET ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\SecurityController::clearEmployeeSessionAction'
    _legacy_controller: AdminSecuritySessionEmployee
    _legacy_link: AdminSecuritySessionEmployee

admin_security_sessions_employee_list:
  path: /session/employee
  methods: [ GET ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\SecurityController::employeeSessionAction'
    _legacy_controller: AdminSecuritySessionEmployee
    _legacy_link: AdminSecuritySessionEmployee

admin_security_sessions_employee_delete:
  path: /session/employee/{sessionId}
  methods: [ DELETE ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\SecurityController::deleteEmployeeSessionAction'
    _legacy_controller: AdminSecuritySessionEmployee
    _legacy_link: AdminSecuritySessionEmployee
  requirements:
    sessionId: \d+

admin_security_sessions_employee_bulk_delete:
  path: /session/employee/delete/bulk
  methods: [ POST, DELETE ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\SecurityController::bulkDeleteEmployeeSessionAction'
    _legacy_controller: AdminSecuritySessionEmployee
    _legacy_link: AdminSecuritySessionEmployee:submitBulkdeleteemployees

admin_security_sessions_customer_bulk_delete:
  path: /session/customer/delete/bulk
  methods: [ POST, DELETE ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\SecurityController::bulkDeleteCustomerSessionAction'
    _legacy_controller: AdminSecuritySessionCustomer
    _legacy_link: AdminSecuritySessionCustomer:submitBulkdeleteemployees

admin_security_sessions_customer_search:
  path: /session/customer
  methods: [ POST ]
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\CommonController::searchGridAction
    _legacy_controller: AdminSecuritySessionCustomer
    gridDefinitionFactoryServiceId: prestashop.core.grid.definition.factory.security.session.customer
    redirectRoute: admin_security_sessions_customer_list

admin_security_sessions_employee_search:
  path: /session/employee
  methods: [ POST ]
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\CommonController::searchGridAction
    _legacy_controller: AdminSecuritySessionEmployee
    gridDefinitionFactoryServiceId: prestashop.core.grid.definition.factory.security.session.employee
    redirectRoute: admin_security_sessions_employee_list
