@@ -543,29 +543,29 @@ private function registerTranslatorConfiguration(array $config, ContainerBuilder
543
543
if (class_exists ('Symfony\Component\Validator\Validator ' )) {
544
544
$ r = new \ReflectionClass ('Symfony\Component\Validator\Validator ' );
545
545
546
- $ dirs [] = dirname ($ r ->getFilename ()).'/Resources/translations ' ;
546
+ $ dirs [] = dirname ($ r ->getFileName ()).'/Resources/translations ' ;
547
547
}
548
548
if (class_exists ('Symfony\Component\Form\Form ' )) {
549
549
$ r = new \ReflectionClass ('Symfony\Component\Form\Form ' );
550
550
551
- $ dirs [] = dirname ($ r ->getFilename ()).'/Resources/translations ' ;
551
+ $ dirs [] = dirname ($ r ->getFileName ()).'/Resources/translations ' ;
552
552
}
553
553
if (class_exists ('Symfony\Component\Security\Core\Exception\AuthenticationException ' )) {
554
554
$ r = new \ReflectionClass ('Symfony\Component\Security\Core\Exception\AuthenticationException ' );
555
555
556
- if (file_exists (dirname ($ r ->getFilename ()).'/../composer.json ' )) {
556
+ if (file_exists (dirname ($ r ->getFileName ()).'/../composer.json ' )) {
557
557
// with Symfony 2.4, the Security component was split into several subpackages
558
558
// and the translations have been moved to the symfony/security-core package
559
- $ dirs [] = dirname ($ r ->getFilename ()).'/../Resources/translations ' ;
559
+ $ dirs [] = dirname ($ r ->getFileName ()).'/../Resources/translations ' ;
560
560
} else {
561
561
// in Symfony 2.3, translations are located in the symfony/security package
562
- $ dirs [] = dirname ($ r ->getFilename ()).'/../../Resources/translations ' ;
562
+ $ dirs [] = dirname ($ r ->getFileName ()).'/../../Resources/translations ' ;
563
563
}
564
564
}
565
565
$ overridePath = $ container ->getParameter ('kernel.root_dir ' ).'/Resources/%s/translations ' ;
566
566
foreach ($ container ->getParameter ('kernel.bundles ' ) as $ bundle => $ class ) {
567
567
$ reflection = new \ReflectionClass ($ class );
568
- if (is_dir ($ dir = dirname ($ reflection ->getFilename ()).'/Resources/translations ' )) {
568
+ if (is_dir ($ dir = dirname ($ reflection ->getFileName ()).'/Resources/translations ' )) {
569
569
$ dirs [] = $ dir ;
570
570
}
571
571
if (is_dir ($ dir = sprintf ($ overridePath , $ bundle ))) {
@@ -645,7 +645,7 @@ private function getValidatorXmlMappingFiles(ContainerBuilder $container)
645
645
646
646
foreach ($ container ->getParameter ('kernel.bundles ' ) as $ bundle ) {
647
647
$ reflection = new \ReflectionClass ($ bundle );
648
- if (is_file ($ file = dirname ($ reflection ->getFilename ()).'/Resources/config/validation.xml ' )) {
648
+ if (is_file ($ file = dirname ($ reflection ->getFileName ()).'/Resources/config/validation.xml ' )) {
649
649
$ files [] = realpath ($ file );
650
650
$ container ->addResource (new FileResource ($ file ));
651
651
}
@@ -660,7 +660,7 @@ private function getValidatorYamlMappingFiles(ContainerBuilder $container)
660
660
661
661
foreach ($ container ->getParameter ('kernel.bundles ' ) as $ bundle ) {
662
662
$ reflection = new \ReflectionClass ($ bundle );
663
- if (is_file ($ file = dirname ($ reflection ->getFilename ()).'/Resources/config/validation.yml ' )) {
663
+ if (is_file ($ file = dirname ($ reflection ->getFileName ()).'/Resources/config/validation.yml ' )) {
664
664
$ files [] = realpath ($ file );
665
665
$ container ->addResource (new FileResource ($ file ));
666
666
}
0 commit comments