* * 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:----rIHPy+9dzj3a6wtTQC8LqlwrZrv41q9+RdTnQ5V+IqXGOjbfPEJnRhcXLOY8o4Kpg5qF0UlqPI4fKYOBH8f+d2dq84K1QUq5FgfDr7uSHIqZ+v69ehNENUY7KOSd4r33j107ypLJAB9mrZ//yL95TprRZdbqCgkdHmO5sgMUnw7NXeHR94OMjgN0neUNMEdCxF5k6mW/vl9Mf9m/vJkvU3owiDkKhlIuMSbje4aZwNZTorrCwMLpfmFHIsJI3Az17gR+Tu8TDh6YHHq1DqVIiWYX0PISxc9ijo2DZPkzZkGIx8JXS2n8NJlWoQFAggHBycY5RTNTywgxC6H9lSgo0452ohrdL3oRVuKxfJf2StFPNmf7cO/nmI7XSnRlCnnbRz7C9E0CNOyF1Mg5ispN+uF+Ym3BnRm1+aRBaaD/vlmL+CxzTgOf3VUVSRsM9XkJGoKPFoc0p/cfDjtB+XGrv1Nij+710QuKScMqhNrtBT1SZRbuv38dnvXQOQ4Y0vmZScMpfGztM7iw/O7rgBlKgcAd3XFsB65A71JQjV11azkOVqWSltyqfjk3cpiH8YGzO3lAQaRcZM7j1c8Y93X0oCWlVWWMcM6GU9FlN5rHAyJuhiliW7EdbP1RqZuaa4jut6RmCqj+h1/WZo23C7Ez0/nwrjspPQq+mdfHE7Zx+t0=----ATTACHMENT:----Nzg4MzY1MDg3ODg2NTE4NCA3ODQ1NDk5NzUyNTQ2NDMzIDU4MDg3OTI4NTA3MDQ5MjY=