# This file is a part of the Sylius package.
# (c) Sylius Sp. z o.o.

sylius_shop_cart_summary:
    path: /
    methods: [GET]
    defaults:
        _controller: sylius.controller.order::summaryAction
        _sylius:
            template: "@SyliusShop/cart/index.html.twig"
            form: Sylius\Bundle\ShopBundle\Form\Type\CartType

sylius_shop_cart_checkout:
    path: /checkout
    methods: [PATCH]
    defaults:
        _controller: sylius.controller.order::saveAction
        _sylius:
            template: "@SyliusShop/cart/index.html.twig"
            redirect: sylius_shop_checkout_start
            form: Sylius\Bundle\ShopBundle\Form\Type\CartType
            flash: false
