sylius_admin_shipment:
    resource: |
        alias: sylius.shipment
        section: admin
        templates: "@SyliusAdmin\\shared\\crud"
        only: ['index', 'show']
        grid: sylius_admin_shipment
        permission: true
    type: sylius.resource

sylius_admin_shipment_ship:
    path: /shipments/{id}/ship
    methods: [PUT]
    defaults:
        _controller: sylius.controller.shipment::updateAction
        _sylius:
            event: ship
            section: admin
            permission: true
            state_machine:
                graph: sylius_shipment
                transition: ship
            redirect: sylius_admin_shipment_index
            flash: sylius.shipment.shipped
            form: Sylius\Bundle\AdminBundle\Form\Type\ShipmentShipType

sylius_admin_shipment_resend_confirmation_email:
    path: /shipments/{id}/resend-confirmation-email
    methods: [GET]
    defaults:
        _controller: sylius_admin.controller.resend_shipment_confirmation_email
