Пример #1
0
 /**
  * @static
  * @return void
  */
 public static function registerClassModelMappingNamespaces()
 {
     $autoloader = \Zend_Loader_Autoloader::getInstance();
     if ($map = Config::getModelClassMappingConfig()) {
         $map = $map->toArray();
         foreach ($map as $targetClass) {
             $classParts = explode("_", $targetClass);
             $autoloader->registerNamespace($classParts[0]);
         }
     }
 }