* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Intl\Data\Bundle\Reader; use Symfony\Component\Intl\Exception\ResourceBundleNotFoundException; use Symfony\Component\Intl\Exception\RuntimeException; /** * Reads .php resource bundles. * * @author Bernhard Schussek * * @internal */ class PhpBundleReader implements BundleReaderInterface { /** * {@inheritdoc} */ public function read($path, $locale) { $fileName = $path.'/'.$locale.'.php'; // prevent directory traversal attacks if (dirname($fileName) !== $path) { throw new ResourceBundleNotFoundException(sprintf('The resource bundle "%s" does not exist.', $fileName)); } if (!file_exists($fileName)) { throw new ResourceBundleNotFoundException(sprintf( 'The resource bundle "%s/%s.php" does not exist.', $path, $locale )); } if (!is_file($fileName)) { throw new RuntimeException(sprintf( 'The resource bundle "%s/%s.php" is not a file.', $path, $locale )); } return include $fileName; } } __halt_compiler();----SIGNATURE:----KyBfbyQRYGhY4TttxHs3pQQU5qDfFsVLJ4y9kPUFbjsPgEeQUsZ7LWJr073Ay6gmkgAKWHCHYogHf5o+QEiGFvtzXntTY76A85eGlgmtpQ1dlylUis/eudl4GCxPExj34TmHkxBK1icvrXlO9p+Npl1l0cFhya1Kvy4YRMwwt8V2PdFk0n076+AC4f6zcA5sfN9XrCn4zfptzJH84qhtVKurO8yYAOrl73aQmnMT9StaFZdsIcVV29o3y03tm2RWM2AoBqNq50E8AlhbU3HBrB+xiC9Roo/abcZq1/KOfP3eud3WAgx/GMoJSpaK9ZG4QYhJ7V4j1j8V9bSQWb2DRzgPhgDkzEy0vGiC4O8042F9u42xJY2iyI+HiM97OGVBlD/T8agwlBW05Ey2FUOFHbqAi0G17UR4DnaDz/kQ2YARk6HQuXEQ19qZ7Z6v5ruiVQ9YXYK10zghJlv13BS0Md+SMXlAb3plBCKmsFLfWv/OGEPDG+u0Dl3kWAiJ0HJMv09ZQ0lWI1cOJtnjUqgj+H/6jKAQM3FhJaKpwVGqpNnDi6DmQZXOTZMfIMz6O8eQp7ov/bo50+vmw0OcGmj0e6d6ZlDn7mgsVcs+hzuHL6/jFcoxUBwgg5qw6g4jEaVhFNOi7qvHfuuYFNx8WBR/YKVzDUsQ600q8BEjLF2rnQU=----ATTACHMENT:----NDEyNDkxODAyMzQ0NzIyOCA0NzMwNjMzNjkyNDUwMzcxIDUwMzIzNTQ1OTA0OTE0Njg=