Skip to content

Commit ecbbf3f

Browse files
committed
Use a different approach to solve the deprecation
1 parent 6842ca2 commit ecbbf3f

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

tests/End2End/App/Kernel.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ public function registerContainerConfiguration(LoaderInterface $loader): void
2828
{
2929
$loader->load(__DIR__ . '/config.yml');
3030

31+
if (self::VERSION_ID >= 50000) {
32+
$loader->load(__DIR__ . '/deprecations_for_5.yml');
33+
}
34+
3135
if (interface_exists(MessageBusInterface::class) && self::VERSION_ID >= 40300) {
3236
$loader->load(__DIR__ . '/messenger.yml');
3337
}

tests/End2End/App/config.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ sentry:
44
error_types: E_ALL & ~E_USER_DEPRECATED
55

66
framework:
7-
router:
8-
utf8: true # avoid deprecation
9-
resource: "%routing_config_dir%/routing.yml"
7+
router: { resource: "%routing_config_dir%/routing.yml" }
108
secret: secret
119
test: ~
1210

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
framework:
2+
routing:
3+
utf8: true

0 commit comments

Comments
 (0)