<?php declare(strict_types=1);

return \Symfony\Component\DependencyInjection\Loader\Configurator\App::config([
    'doctrine' => [
        'dbal' => [
            'default_connection' => 'default',
            'connections' => [
                'default' => [
                    'url' => '%env(resolve:DATABASE_URL)%',
                    'profiling_collect_backtrace' => '%kernel.debug%',
                ],
            ],
        ],
        'orm' => [
            'entity_managers' => [
                'default' => [
                    'validate_xml_mapping' => true,
                    'naming_strategy' => 'doctrine.orm.naming_strategy.underscore_number_aware',
                    'auto_mapping' => true,
                    'mappings' => [
                        'App' => [
                            'type' => 'attribute',
                            'is_bundle' => false,
                            'dir' => '%kernel.project_dir%/src',
                            'prefix' => 'App',
                            'alias' => 'App',
                        ],
                    ],
                ],
            ]
        ]
    ]
]);
