Skip to content

Commit

Permalink
Merge pull request #29 from Aeliot-Tm/fix_getting_of_projec_directory
Browse files Browse the repository at this point in the history
Fix getting of project directory
  • Loading branch information
Aeliot-Tm authored May 14, 2021
2 parents ca3c239 + c716633 commit 00512f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
CHANGELOG
=========

2.3.2
-----
* Fix getting of project directory path for Symfony >=5.0

2.3.1
-----
* Fix YAML Key Pattern Linter.

2.3.0
-----
* Added compatibility with Symfony 5.2.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private function getDirectories(ContainerBuilder $container): array
$dirs = [];
$version = (new KernelVersionDetector())->getVersion($container, 'symfony/http-kernel');
if (version_compare($version, '5.0.0', '>=')) {
$projectDir = $container->hasParameter('kernel.project_dir');
$projectDir = $container->getParameter('kernel.project_dir');
$dirs[] = $projectDir.'/translations';
$isResourcesFirst = false;
} else {
Expand Down

0 comments on commit 00512f9

Please sign in to comment.