Skip to content

Commit db5c439

Browse files
authored
Symfony 5 support: Return 'assets' dir correctly (#24)
By default, return 'assets' for anything above Symfony 4. Previously, it was incorrectly returning 'web' for Symfony 5.
1 parent 1287c02 commit db5c439

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

DependencyInjection/Configuration.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ public function getConfigTreeBuilder()
5555
private function getAssetsDir()
5656
{
5757
switch (Kernel::MAJOR_VERSION) {
58-
case 4:
59-
return 'assets';
60-
default:
58+
case 3:
6159
return 'web';
60+
default:
61+
return 'assets';
6262
}
6363
}
6464
}

0 commit comments

Comments
 (0)