public function loadFactories() { if (self::$current == 'wa-system') { $file_path = $this->getConfig()->getPath('config', 'factories'); if (file_exists($file_path)) { self::$factories_config = (include $file_path); } } if (isset(self::$factories_config['locale'])) { waLocale::init(self::getCommonFactory('locale', 'waLocaleAdapter')); } else { waLocale::init(); } }
public function loadFactories() { if (self::$current == 'wa-system') { $file_path = $this->getConfig()->getPath('config', 'factories'); if (file_exists($file_path)) { self::$factories_config = (include $file_path); } } waLocale::init(); }