<?php

$container->loadFromExtension('framework', [
    'annotations' => false,
    'http_method_override' => false,
    'handle_all_throwables' => true,
    'php_errors' => ['log' => true],
    'messenger' => [
        'default_bus' => 'messenger.bus.commands',
        'buses' => [
            'messenger.bus.commands' => [
                'default_middleware' => false,
                'middleware' => [
                    'add_bus_name_stamp_middleware',
                    'send_message',
                    'handle_message',
                ],
            ],
            'messenger.bus.events' => [
                'default_middleware' => true,
            ],
        ],
    ],
]);
