@@ -1115,12 +1115,12 @@ private function registerTranslatorConfiguration(array $config, ContainerBuilder
1115
1115
$ defaultDir = $ container ->getParameterBag ()->resolveValue ($ config ['default_path ' ]);
1116
1116
$ rootDir = $ container ->getParameter ('kernel.root_dir ' );
1117
1117
foreach ($ container ->getParameter ('kernel.bundles_metadata ' ) as $ name => $ bundle ) {
1118
- if (\ is_dir ($ dir = $ bundle ['path ' ].'/Resources/translations ' )) {
1118
+ if (is_dir ($ dir = $ bundle ['path ' ].'/Resources/translations ' )) {
1119
1119
$ dirs [] = $ dir ;
1120
1120
} else {
1121
1121
$ nonExistingDirs [] = $ dir ;
1122
1122
}
1123
- if (\ is_dir ($ dir = $ rootDir .sprintf ('/Resources/%s/translations ' , $ name ))) {
1123
+ if (is_dir ($ dir = $ rootDir .sprintf ('/Resources/%s/translations ' , $ name ))) {
1124
1124
@trigger_error (sprintf ('Translations directory "%s" is deprecated since Symfony 4.2, use "%s" instead. ' , $ dir , $ defaultDir ), E_USER_DEPRECATED );
1125
1125
$ dirs [] = $ dir ;
1126
1126
} else {
@@ -1129,7 +1129,7 @@ private function registerTranslatorConfiguration(array $config, ContainerBuilder
1129
1129
}
1130
1130
1131
1131
foreach ($ config ['paths ' ] as $ dir ) {
1132
- if (\ is_dir ($ dir )) {
1132
+ if (is_dir ($ dir )) {
1133
1133
$ dirs [] = $ transPaths [] = $ dir ;
1134
1134
} else {
1135
1135
throw new \UnexpectedValueException (sprintf ('%s defined in translator.paths does not exist or is not a directory ' , $ dir ));
@@ -1144,13 +1144,13 @@ private function registerTranslatorConfiguration(array $config, ContainerBuilder
1144
1144
$ container ->getDefinition ('console.command.translation_update ' )->replaceArgument (6 , $ transPaths );
1145
1145
}
1146
1146
1147
- if (\ is_dir ($ defaultDir )) {
1147
+ if (is_dir ($ defaultDir )) {
1148
1148
$ dirs [] = $ defaultDir ;
1149
1149
} else {
1150
1150
$ nonExistingDirs [] = $ defaultDir ;
1151
1151
}
1152
1152
1153
- if (\ is_dir ($ dir = $ rootDir .'/Resources/translations ' )) {
1153
+ if (is_dir ($ dir = $ rootDir .'/Resources/translations ' )) {
1154
1154
if ($ dir !== $ defaultDir ) {
1155
1155
@trigger_error (sprintf ('Translations directory "%s" is deprecated since Symfony 4.2, use "%s" instead. ' , $ dir , $ defaultDir ), E_USER_DEPRECATED );
1156
1156
}
@@ -1186,7 +1186,7 @@ private function registerTranslatorConfiguration(array $config, ContainerBuilder
1186
1186
$ translator ->getArgument (4 ),
1187
1187
[
1188
1188
'resource_files ' => $ files ,
1189
- 'scanned_directories ' => \ array_merge ($ dirs , $ nonExistingDirs ),
1189
+ 'scanned_directories ' => array_merge ($ dirs , $ nonExistingDirs ),
1190
1190
]
1191
1191
);
1192
1192
0 commit comments