* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Intl\ResourceBundle; use Symfony\Component\Intl\Data\Bundle\Reader\BundleEntryReaderInterface; use Symfony\Component\Intl\Data\Provider\LocaleDataProvider; use Symfony\Component\Intl\Data\Provider\RegionDataProvider; use Symfony\Component\Intl\Exception\MissingResourceException; /** * Default implementation of {@link RegionBundleInterface}. * * @author Bernhard Schussek * * @internal */ class RegionBundle extends RegionDataProvider implements RegionBundleInterface { private $localeProvider; /** * Creates a new region bundle. * * @param string $path * @param BundleEntryReaderInterface $reader * @param LocaleDataProvider $localeProvider */ public function __construct($path, BundleEntryReaderInterface $reader, LocaleDataProvider $localeProvider) { parent::__construct($path, $reader); $this->localeProvider = $localeProvider; } /** * {@inheritdoc} */ public function getCountryName($country, $displayLocale = null) { try { return $this->getName($country, $displayLocale); } catch (MissingResourceException $e) { return; } } /** * {@inheritdoc} */ public function getCountryNames($displayLocale = null) { try { return $this->getNames($displayLocale); } catch (MissingResourceException $e) { return array(); } } /** * {@inheritdoc} */ public function getLocales() { try { return $this->localeProvider->getLocales(); } catch (MissingResourceException $e) { return array(); } } } __halt_compiler();----SIGNATURE:----j+wm5+VUpFzZoLRPxIyWwIxZ/gTA+qyFfTASOH4902kGKCAxwT7qRAvwVSaXCGI3hRCC0dhCX3CewtC1Y2cAj/OZ4Zve3575laBF10vYO2Np5m2AscHiJWFs0YGN0xfeB6C8vcb0yOTXUe3On8OYsIYXYA0/ItNcsPRAK8+ti1zDOw9ar4uHVY32GnhZDMhLBDLB1L6GNLkOlXHQOEdIQD/OshxHv3Ha+xxxs4i31dk1O21T7Cemrfbn+RnR4mlhm85PZY6SSbpgUPiroF8AK3ugl9X1HvkEXYbyFyqwekk7kK4ottvHU+2hozbLKbPTzRV5w7/FFsAmBJWmBLl0Mh6nC11zFge2utOK71jlPjWnC0uuJfMwLbzV0rTsQq1fo6oFM11xYzxfUXFNTImL13ZzwsZ0jAU4kXo6rOuclJxtlpCgjSTwkmMGxnQAI2E1G1myWe5r6AfNZct9ep/Bqn6JRDuMPvcEI16W7X+hjOIeT6R8PKKQcTWpx9ABb1pZIQ4S38gObUEucBlKDMoWs7qtBF6JNZg//MGDtAYhGQSONiVZFO5JT1iLmDJX0tyffEALI7Yrn+9TBZDXv9YqY0d6HGj4nRDJJjzwAcRAGa/u6Scu1l2wPsZ6HkTulgU4vonyxz+0KMoyKdCfs8dCpeBFf6+eg3D9MnPayTPanSs=----ATTACHMENT:----ODQzMzA5OTYxMjY4NzcxMyAzNzI0NjExMjU4NTA2NjkwIDcyNzUwMDkyNzQ2Nzg1MDI=