4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Intl\ResourceBundle\Reader
;
15 * Reads resource bundle files.
17 * @author Bernhard Schussek <bschussek@gmail.com>
19 interface BundleReaderInterface
22 * Reads a resource bundle.
24 * @param string $path The path to the resource bundle.
25 * @param string $locale The locale to read.
27 * @return mixed Returns an array or {@link \ArrayAccess} instance for
28 * complex data, a scalar value otherwise.
30 public function read($path, $locale);
33 * Reads the available locales of a resource bundle.
35 * @param string $path The path to the resource bundle.
37 * @return string[] A list of supported locale codes.
39 public function getLocales($path);