Пример #1
0
 public function createService(ServiceLocatorInterface $sm)
 {
     $configManager = $sm->getServiceLocator()->get('Base\\Manager\\ConfigManager');
     $locale = $configManager->need('i18n.locale');
     $numberFormat = new NumberFormat();
     $numberFormat->setLocale($locale);
     return $numberFormat;
 }
Пример #2
0
 public function testDefaultLocale()
 {
     $this->assertEquals(Locale::getDefault(), $this->helper->getLocale());
 }