コード例 #1
0
ファイル: NumberFormatFactory.php プロジェクト: Mendim/ep3-bs
 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
ファイル: NumberFormatTest.php プロジェクト: haoyanfei/zf2
 public function testDefaultLocale()
 {
     $this->assertEquals(Locale::getDefault(), $this->helper->getLocale());
 }