Website/app/config/services.php

19 lines
418 B
PHP
Raw Normal View History

2024-04-22 18:52:51 +00:00
<?php
declare(strict_types=1);
2024-04-22 20:26:40 +00:00
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
2024-04-22 18:52:51 +00:00
return function (ContainerConfigurator $container): void {
$services = $container->services()
->defaults()
->autowire()
->autoconfigure()
;
$services
->load('App\\', '../src/')
->exclude('../src/{DependencyInjection,Entity,Kernel.php}')
;
2024-04-22 20:26:40 +00:00
};