* * 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:----QOIgCJwgi5FSb7XmnVI2GFXhdIQgTEbNu0prqPWX4pHJYIh4O00JqeLtOtUm5+y35MnUYEjX6vhDoBV0IAizir8n53XNf6BQNwRjm03114tN+jVPedfy9PFDXuK2ZoXjWZEnVHh6eWuRoVEAOPxCD83x7GE4+TRBM2QeJgChyEyyOhSC/9qXWibgWqbFrSt6UCE4BnBABoeti7pdYCUUtCYnOpbHkRH+ccQS4zHe6uDUwHo0Q0QTPc7bdrpdZ1e0T9dzVNvWX0amn1jek9+413PUAHPTjLyoa3KCjI25o5q8YQgwOUFIHeVIHBBJLCOZNhoQjaQBAkM4GzirO0z+dIeI4cPIuJ4uomRkNvhF8O5CN2rVOIu0P9l/THfVHfosf6/bOogX2NRaYxnsvEZ1u6oD4BELLuA/CVbIlR1e0caQ5/tG+LFSgWC/1KBn14SfXrZXT/o3lZdY89xmjntv8VPUh6FQntbAFdB4qqAjWoNtSbbtwr/Iz+5e3v3nDJ1RNHV03IcUowwMx+g0lkn090M02NNLeyLzf6QuoylLemR+neB0bVAiUBEwNZ4nwN8tOnb7HtRC2bxN3xZIB2b76t2p95bPUhRAypzhVA3Eugym1SDok6Kt/Z8/jhJ/+pinmgjFEwQfyWjTam4UsSGjape+a0JX5ZzFy/EZZenpiG0=----ATTACHMENT:----NTA1MDM5MzY5NDA1Nzc1IDUxMjUwMTEwMTI4NDk2MjQgOTU5NzMwMjk0ODExNzA0