Skip to content

Commit c3f48ad

Browse files
authored
Set router to utf8 is in symfony 5.1 (#29)
Not setting the router to utf8 is deprecated in symfony 5.1
1 parent 5050d24 commit c3f48ad

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/config/parameters.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,10 @@
1010
'annotations' => ['cache' => 'none'],
1111
]);
1212
}
13+
14+
// Not setting the router to utf8 is deprecated in symfony 5.1
15+
if (\Symfony\Component\HttpKernel\Kernel::VERSION_ID >= 50100) {
16+
$container->loadFromExtension('framework', [
17+
'router' => ['utf8' => true],
18+
]);
19+
}

0 commit comments

Comments
 (0)