Skip to content

Commit aa54c30

Browse files
committed
Use Services.php instead of Services.yaml file
1 parent 86abd47 commit aa54c30

2 files changed

Lines changed: 22 additions & 8 deletions

File tree

Configuration/Services.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the "codehighlight" extension for TYPO3 CMS.
5+
*
6+
* For the full copyright and license information, please read the
7+
* LICENSE.txt file that was distributed with this source code.
8+
*/
9+
10+
use Symfony\Component\DependencyInjection\ContainerBuilder;
11+
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
12+
13+
return static function (ContainerConfigurator $configurator, ContainerBuilder $builder): void {
14+
$services = $configurator->services();
15+
16+
$services->defaults()
17+
->autowire()
18+
->autoconfigure();
19+
20+
$services
21+
->load('Brotkrueml\CodeHighlight\\', __DIR__ . '/../Classes/*');
22+
};

Configuration/Services.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)