admin_manufacturers_index:
  path: /
  methods: GET
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Sell\Catalog\ManufacturerController::indexAction'
    _legacy_controller: AdminManufacturers
    _legacy_link: AdminManufacturers

#
# Manufacturer routes
#
admin_manufacturers_search:
  path: /
  methods: POST
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Sell\Catalog\ManufacturerController::searchAction'
    _legacy_controller: AdminManufacturers
    _legacy_link: AdminManufacturers:submitFiltermanufacturer

admin_manufacturers_create:
  path: /new
  methods: [ GET, POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Sell\Catalog\ManufacturerController::createAction'
    _legacy_controller: AdminManufacturers
    _legacy_link: AdminManufacturers:addmanufacturer

admin_manufacturers_view:
  path: /{manufacturerId}/view
  methods: GET
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Sell\Catalog\ManufacturerController::viewAction'
    _legacy_controller: AdminManufacturers
    _legacy_link: AdminManufacturers:viewmanufacturer
    _legacy_parameters:
      id_manufacturer: manufacturerId
  requirements:
    manufacturerId: \d+

admin_manufacturers_edit:
  path: /{manufacturerId}/edit
  methods: [ GET, POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Sell\Catalog\ManufacturerController::editAction'
    _legacy_controller: AdminManufacturers
    _legacy_link: AdminManufacturers:updatemanufacturer
    _legacy_parameters:
      id_manufacturer: manufacturerId
  requirements:
    manufacturerId: \d+

admin_manufacturers_delete:
  path: /{manufacturerId}/delete
  methods: [ POST, DELETE ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Sell\Catalog\ManufacturerController::deleteAction'
    _legacy_controller: AdminManufacturers
    _legacy_link: AdminManufacturers:deletemanufacturer
    _legacy_parameters:
      id_manufacturer: manufacturerId
  requirements:
    manufacturerId: \d+

admin_manufacturers_bulk_delete:
  path: /bulk-delete
  methods: POST
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Sell\Catalog\ManufacturerController::bulkDeleteAction'
    _legacy_controller: AdminManufacturers
    _legacy_link: AdminManufacturers:submitBulkdeletemanufacturer

admin_manufacturers_bulk_enable_status:
  path: /bulk-enable
  methods: POST
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Sell\Catalog\ManufacturerController::bulkEnableAction'
    _legacy_controller: AdminManufacturers
    _legacy_link: AdminManufacturers:submitBulkenableSelectionmanufacturer

admin_manufacturers_bulk_disable_status:
  path: /bulk-disable
  methods: POST
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Sell\Catalog\ManufacturerController::bulkDisableAction'
    _legacy_controller: AdminManufacturers
    _legacy_link: AdminManufacturers:submitBulkdisableSelectionmanufacturer

admin_manufacturers_toggle_status:
  path: /{manufacturerId}/toggle-status
  methods: POST
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Sell\Catalog\ManufacturerController::toggleStatusAction'
    _legacy_controller: AdminManufacturers
    _legacy_link: AdminManufacturers:statusmanufacturer
    _legacy_parameters:
      id_manufacturer: manufacturerId
  requirements:
    manufacturerId: \d+

admin_manufacturers_export:
  path: /export
  methods: GET
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Sell\Catalog\ManufacturerController::exportAction'
    _legacy_controller: AdminManufacturers
    _legacy_link: AdminManufacturers:exportmanufacturer

admin_manufacturers_delete_logo_image:
  path: /{manufacturerId}/delete-logo-image
  methods: [ GET, POST ]
  defaults:
    _controller: 'PrestaShopBundle:Admin/Sell/Catalog/Manufacturer:deleteLogoImage'
    _legacy_controller: AdminManufacturers
    _legacy_link: AdminManufacturers:deleteImage
    _legacy_parameters:
      id_manufacturer: manufacturerId
  requirements:
    manufacturerId: \d+

#
# Address routes
#
admin_manufacturer_addresses_create:
  path: addresses/new
  methods: [ GET, POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Sell\Catalog\ManufacturerController::createAddressAction'
    _legacy_controller: AdminManufacturers
    _legacy_link: AdminManufacturers:addaddress

admin_manufacturer_addresses_edit:
  path: addresses/{addressId}/edit
  methods: [ GET, POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Sell\Catalog\ManufacturerController::editAddressAction'
    _legacy_controller: AdminManufacturers
    _legacy_link: AdminManufacturers:editaddresses
    _legacy_parameters:
      id_address: addressId
  requirements:
    addressId: \d+

admin_manufacturer_addresses_delete:
  path: addresses/{addressId}/delete
  methods: [ POST, DELETE ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Sell\Catalog\ManufacturerController::deleteAddressAction'
    _legacy_controller: AdminManufacturers
    _legacy_link: AdminManufacturers:deleteaddress
    _legacy_parameters:
      id_address: addressId
  requirements:
    addressId: \d+

admin_manufacturer_addresses_bulk_delete:
  path: addresses/bulk-delete
  methods: POST
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Sell\Catalog\ManufacturerController::bulkDeleteAddressAction'
    _legacy_controller: AdminManufacturers
    _legacy_link: AdminManufacturers:submitBulkdeleteaddress

admin_manufacturer_addresses_export:
  path: addresses/export
  methods: GET
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Sell\Catalog\ManufacturerController::exportAddressAction'
    _legacy_controller: AdminManufacturers
    _legacy_link: AdminManufacturers:exportaddress
