public static function init() { // vendors self::$paths = ['Doctrine' => ZOOL_PATH . '/doctrine/Doctrine', 'Annotation' => ZOOL_PATH . '/annotation/Annotation']; $modules = Deployment::instance()->modules; foreach ($modules as $moduleName => $moduleDefinition) { self::import($moduleDefinition['path'], $moduleName); } spl_autoload_register('zool\\Zool::loadClass'); }
static function init() { self::$paths = array('zool' => ZOOL_PATH, 'base' => ZOOL_PATH . '/base', 'all' => ZOOL_BASE_ASPECTS_PATH . '/all', 'Doctrine' => ZOOL_PATH . '/doctrine/Doctrine', 'app' => APP_PATH, 'Annotation' => ZOOL_PATH . '/annotation/Annotation'); }