* * 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:----Inu9/mJJg6CDKjSkBDhRis3c5RzInR7dUuQ/BtKyTyLjqCiM8oj3QPBKRY+0ZNjJPoBSjxJRjUc93gOhFusrxhwDkX0m6FtO/how4TxjNbeAs7UImOLOlJMuYvt6DyQpHgmMP9jJ6rHFwNUr36MoTC/tX+Do5Xso8oBloHF6Y8E74HQsaBnt5DSq4gUQH6qomAOy9Nys2D3mN8jzEbOzzU/FDHhEpyNtvUWPv53AEJkzaxm4gklUxC1/sIHzSywU64tbT2M1pxjgBqSk2HrEO0YzOYIa7TTkQWVRDqPC0iO+BgI0ScWm4rkpwLS3ymI+U7+kvXy0GvFgdFE8pzUlefBaxi7l61sibVCe8TvCz4HoLYq3PrHc0BGAywefHBEdGXtjqqjtOKfvrev41xT4LKbz6vjgj2FD2oyLfr11sZ6CoWDvRMQOetsZkiac/GmnU8FhFp8sFvtnJj33JHqNjZnmYq6ZBnCsbvVFDlOkV/yoOAio9wPWz10wy53bkOp3Rf9WZwjWjdqqQTdSrBkWH58tb0MPWVEzy8jKIQiUul5TopWu55KgG3k7MMrVbqmMl6ai6OGcuPiF/ORtyZt6v3moskBBckZsx0fFsc3Ql0/9LrVDq4xHps+dgB1QDuqizwXsF9KMyT0/6XGvIW8/RRgH5xt4Zba6RfnIIKOMzXg=----ATTACHMENT:----OTg3ODYzODc5MDc4MjI1NCAxNjc5MjE4OTgwMTQ1MDYyIDk2NTIzODYwODYzMzkzMjI=