Example #1
0
 /**
  * {@inheritdoc}
  */
 public function getLocales()
 {
     try {
         return $this->localeProvider->getLocales();
     } catch (MissingResourceException $e) {
         return;
     }
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function getLocales()
 {
     try {
         return parent::getLocales();
     } catch (MissingResourceException $e) {
         return null;
     }
 }
 public function testGetLocales()
 {
     $this->assertSame($this->getLocales(), $this->dataProvider->getLocales());
 }