Website/app/config/services.php

30 lines
866 B
PHP
Raw Normal View History

2024-04-22 18:52:51 +00:00
<?php
declare(strict_types=1);
2024-07-12 22:56:04 +00:00
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
2024-04-22 18:52:51 +00:00
2024-07-12 22:56:04 +00:00
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 {
2024-04-22 18:52:51 +00:00
$services = $container->services()
->defaults()
->autowire()
->autoconfigure()
;
$services
2024-07-12 22:56:04 +00:00
->load('App\\', '../backend/')
->exclude('../backend/{DependencyInjection,Entity,Kernel.php}')
2024-04-22 18:52:51 +00:00
;
2024-07-12 22:56:04 +00:00
$services->set(CommonMarkConverter::class);
$services->alias(MarkdownConverter::class, CommonMarkConverter::class);
$services->alias(MarkdownParserInterface::class, CommonMarkMarkdownParserAdapter::class);
2024-04-22 20:26:40 +00:00
};