Skip to content

Commit 9779363

Browse files
author
gguseynov
committed
Allow defaultLocale to be null for generating common symfony "routeName.{_locale}" routes.
1 parent 002da50 commit 9779363

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Router/AdminRouteGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function __construct(
8484
private readonly CacheItemPoolInterface $cache,
8585
private readonly Filesystem $filesystem,
8686
private readonly string $buildDir,
87-
private readonly string $defaultLocale,
87+
private readonly ?string $defaultLocale,
8888
private readonly iterable $adminRouteControllers = [],
8989
) {
9090
}

0 commit comments

Comments
 (0)