Skip to content

Commit 300f9ac

Browse files
committed
fix: switch to php cfg
1 parent b16e335 commit 300f9ac

4 files changed

Lines changed: 24 additions & 20 deletions

File tree

src/Resources/config/routes.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
6+
7+
return static function (RoutingConfigurator $routes): void {
8+
$routes->import('../../Controller', 'attribute');
9+
};

src/Resources/config/routes.xml

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

src/Resources/config/services.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
6+
7+
return static function (ContainerConfigurator $container): void {
8+
$services = $container->services()
9+
->defaults()
10+
->autowire()
11+
->autoconfigure();
12+
13+
$services->load('Frosh\Tools\\', '../../')
14+
->exclude('../../{DependencyInjection,Resources,FroshTools.php}');
15+
};

src/Resources/config/services.xml

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

0 commit comments

Comments
 (0)