futtern/config/services.php

20 lines
656 B
PHP
Raw Normal View History

2024-02-05 15:16:43 +00:00
<?php declare(strict_types=1);
2024-02-12 21:03:17 +00:00
use Symfony\Bridge\Twig\AppVariable;
2024-02-13 22:02:22 +00:00
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
2024-02-05 15:16:43 +00:00
return static function (ContainerConfigurator $containerConfigurator): void {
$services = $containerConfigurator->services();
$services->defaults()
->autowire()
->autoconfigure();
$services
->load('App\\', __DIR__ . '/../src/')
->exclude([
__DIR__ . '/../src/DependencyInjection/',
__DIR__ . '/../src/Entity/',
__DIR__ . '/../src/Kernel.php',
]);
2024-02-12 21:03:17 +00:00
$services->alias(AppVariable::class, 'twig.app_variable');
2024-02-05 15:16:43 +00:00
};