if ($container->
fileExists($dir =
$bundle['path'
].'/Resources/translations'
) ||
$container->
fileExists($dir =
$bundle['path'
].'/translations'
)) { $dirs[] =
$dir;
} else { $nonExistingDirs[] =
$dir;
} } foreach ($config['paths'
] as $dir) { if ($container->
fileExists($dir)) { $dirs[] =
$transPaths[] =
$dir;
} else { throw new \
UnexpectedValueException(sprintf('"%s" defined in translator.paths does not exist or is not a directory.',
$dir));
} } if ($container->
hasDefinition('console.command.translation_debug'
)) { $container->
getDefinition('console.command.translation_debug'
)->
replaceArgument(5,
$transPaths);
} if ($container->
hasDefinition('console.command.translation_extract'
)) { $container->
getDefinition('console.command.translation_extract'
)->
replaceArgument(6,
$transPaths);
}