示例#1
0
 /**
  * {@inheritdoc}
  */
 public function getLocales()
 {
     try {
         return $this->localeProvider->getLocales();
     } catch (MissingResourceException $e) {
         return;
     }
 }
示例#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());
 }