Website/app/config/services.php
Snoweuph 37a63c29cc
Some checks failed
Quality Check / Check (push) Failing after 3s
#1: Restructure
2024-07-13 12:30:13 +02:00

29 lines
866 B
PHP

<?php
declare(strict_types=1);
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
use App\Markdown\CommonMarkMarkdownParserAdapter;
use App\Markdown\MarkdownParserInterface;
use App\Security\User;
use App\StaticData\StaticDataService;
use League\CommonMark\CommonMarkConverter;
use League\CommonMark\MarkdownConverter;
return function(ContainerConfigurator $container): void {
$services = $container->services()
->defaults()
->autowire()
->autoconfigure()
;
$services
->load('App\\', '../backend/')
->exclude('../backend/{DependencyInjection,Entity,Kernel.php}')
;
$services->set(CommonMarkConverter::class);
$services->alias(MarkdownConverter::class, CommonMarkConverter::class);
$services->alias(MarkdownParserInterface::class, CommonMarkMarkdownParserAdapter::class);
};