29 lines
866 B
PHP
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);
|
|
};
|