Skip to content

Commit feeefa4

Browse files
committed
bug #1599 [Icons] Fix Kernel deprecation (smnandre)
This PR was merged into the 2.x branch. Discussion ---------- [Icons] Fix Kernel deprecation Commits ------- ca40b18 [Icons] Fix Kernel deprecation
2 parents fc547a0 + ca40b18 commit feeefa4

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

src/Icons/tests/Fixtures/TestKernel.php

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\UX\Icons\Tests\Fixtures;
413

514
use Psr\Log\NullLogger;
@@ -26,9 +35,9 @@ public function registerBundles(): iterable
2635
yield new UXIconsBundle();
2736
}
2837

29-
protected function configureContainer(ContainerConfigurator $c): void
38+
protected function configureContainer(ContainerConfigurator $container): void
3039
{
31-
$c->extension('framework', [
40+
$container->extension('framework', [
3241
'secret' => 'S3CRET',
3342
'test' => true,
3443
'router' => ['utf8' => true],
@@ -37,21 +46,22 @@ protected function configureContainer(ContainerConfigurator $c): void
3746
'php_errors' => ['log' => true],
3847
'property_access' => true,
3948
'http_client' => true,
49+
'handle_all_throwables' => true,
4050
]);
4151

42-
$c->extension('twig', [
43-
'default_path' => __DIR__.'/templates',
52+
$container->extension('twig', [
53+
'default_path' => __DIR__ . '/templates',
4454
]);
4555

46-
$c->extension('twig_component', [
56+
$container->extension('twig_component', [
4757
'defaults' => [],
4858
'anonymous_template_directory' => 'components',
4959
]);
5060

51-
$c->extension('ux_icons', [
61+
$container->extension('ux_icons', [
5262
'icon_dir' => '%kernel.project_dir%/tests/Fixtures/icons',
5363
]);
5464

55-
$c->services()->set('logger', NullLogger::class);
65+
$container->services()->set('logger', NullLogger::class);
5666
}
5767
}

0 commit comments

Comments
 (0)