Init the Model Manager

@throws Exception
@return void
428993
protected function initModelManager()
    {
        $managerClass = $this->getModel();
        $modelManager = $this->newModelManagerInstance($this->getModel());
        if ($modelManager instanceof RecordManager) {
            $this->modelManager = $this->newModelManagerInstance($this->getModel());
        } else {
            throw new Exception(
                "invalid ModelManager name [$managerClass] 
                for controller [" . $this->getClassName() . "]"
            );
        }
    }
920426
public void init() throws Exception {
        for (Object object : starters) {
            if (object instanceof LifeCycle)
                ((LifeCycle) object).init();
        }
    }
676903
public function initializeDataSourceManager()
    {
        $dataSources = $this->dataSourceObjectBackend->loadObject();
        if (!is_array($dataSources)) {
            $dataSources = array();
        }
    
        $this->dataSources = $dataSources;
    }
920946
public function init()
    {
        if ($this->isEnabled()) {
            $this->client = \PHPDaemon\Clients\Valve\Pool::getInstance();
            $this->db = \MongoClient::getInstance();
            $this->servers = $this->db->{$this->config->dbname->value . '.servers'};
        }
    }
53064
public function init() 
	{
		Yii::app()->theme = 'dora';
		$this->layout = 'front_default';
		$this->applyViewPath(__dir__, false);
	}
367474
void initialize() throws ManagerCommunicationException
    {
        ResponseEvents re;

        re = server.sendEventGeneratingAction(new AgentsAction());

        for (ManagerEvent event : re.getEvents())
        {
            if (event instanceof AgentsEvent)
            {
                logger.info( event );
                handleAgentsEvent((AgentsEvent) event);
            }
        }
    }
542380
public function init() {

		parent::init();

		// Permission
		$this->crudPermission = FormsGlobal::PERM_FORM_ADMIN;

		// Services
		$this->modelService	= Yii::$app->factory->get( 'formService' );
	}
309645
protected function _init() {
		parent::_init();
		$config =& $this->_config;

		if (!$config['to']) {
			$assoc = preg_replace("/\\w+$/", "", $config['from']) . $config['name'];
			$config['to'] = Libraries::locate('models', $assoc);
		} elseif (!strpos($config['to'], '\\')) {
			$config['to'] = preg_replace("/\\w+$/", "", $config['from']) . $config['to'];
		}

		if (!$config['key'] || !is_array($config['key'])) {
			$config['key'] = $this->_keys($config['key']);
		}
		if ($config['strategy']) {
			$config = (array) $config['strategy']($this) + $config;
			unset($this->_config['strategy']);
		}
	}
953117
protected function _initModel()
		{

			// Refl model known?
			if (isset($this->_reflModel)) {
				return;
			}

			// Real thing?
			if (!class_exists($this->_model)) {
				throw new \Exception("The model '$this->_model' could not be found.", 1);				
			}

			// Get the reflection			
			$this->_reflModel = new \ReflectionClass($this->_model);

			// Is it a ChickenWire model?
			if (!$this->_reflModel->isSubClassOf("\\ChickenWire\\Model")) {
				throw new \Exception("To use ChickenWire Authentication your connected Model needs to be a ChickenWire Model.", 1);
			}
				

		}
1086382
public function init() {
        if (!$this->database->session_lock_supported()) {
            throw new exception('sessionhandlerproblem', 'error', '', null, 'Database does not support session locking');
        }

        $result = session_set_save_handler(array($this, 'handler_open'),
            array($this, 'handler_close'),
            array($this, 'handler_read'),
            array($this, 'handler_write'),
            array($this, 'handler_destroy'),
            array($this, 'handler_gc'));
        if (!$result) {
            throw new exception('dbsessionhandlerproblem', 'error');
        }
    }
1020671
private static function init() {
		static::$manager = new MountManager(self::$filesystems);
		$local           = new CachedAdapter(new Local("/", LOCK_EX, Local::SKIP_LINKS), new CacheStore());
		self::addAdapter("local", $local);
		self::addAdapter("file", $local);
		self::$manager->addPlugin(new ListPaths());
	}
1076150
public function init(ModuleManagerInterface $manager)
    {
        if (!$manager instanceof ModuleManager) {
            $errMsg =sprintf('Module manager not implement %s', ModuleManager::class);
            throw new Exception\InvalidArgumentException($errMsg);
        }

        /** @var ServiceLocatorInterface $sm */
        $sm = $manager->getEvent()->getParam('ServiceManager');

        if (!$sm instanceof ServiceLocatorInterface) {
            $errMsg = sprintf('Service locator not implement %s', ServiceLocatorInterface::class);
            throw new Exception\InvalidArgumentException($errMsg);
        }
        /** @var ServiceListenerInterface $serviceListener */
        $serviceListener = $sm->get('ServiceListener');
        if (!$serviceListener instanceof ServiceListenerInterface) {
            $errMsg = sprintf('ServiceListener not implement %s', ServiceListenerInterface::class);
            throw new Exception\InvalidArgumentException($errMsg);
        }

        $serviceListener->addServiceManager(
            ModuleOptionsPluginManagerInterface::class,
            ModuleOptionsPluginManager::CONFIG_KEY,
            ModuleOptionsProviderInterface::class,
            'getModuleOptionsConfig'
        );
    }
143727
protected function _init() {
		parent::_init();

		foreach ($this->_fields as $key => $val) {
			if (is_int($key)) {
				unset($this->_fields[$key]);
				$this->_fields[$val] = $val;
			}
		}
		if (!class_exists($model = Libraries::locate('models', $this->_model))) {
			throw new ClassNotFoundException("Model class '{$this->_model}' not found.");
		}
		$this->_model = $model;
	}
709525
protected function init() {
        $this->data['crud'] = 'c';
        $this->data['edulevel'] = self::LEVEL_OTHER;
        $this->data['objecttable'] = competency::TABLE;
    }
907313
protected function initData()
    {
        if (is_null($this->data) && is_null($this->baseModel)) {
            throw new \ErrorException("Error initialize multiple model input. Base model or data not set");
        }

        $attrPart = explode(']', $this->attribute);
        $this->_realAttribute = $this->attribute; //end($attrPart);

        if (is_null($this->data) && $this->model instanceof Model) {
            $this->data = [];
            foreach ((array)$this->model->{$this->_realAttribute} as $index => $value) {
                $this->data[$index] = [];

                $class = $this->baseModel;
                /** @var ActiveRecord|Model $model */
                $model = new $class($value);

                if (method_exists($model, 'setIsNewRecord')) {
                    $pkName = $model->getPrimaryKey(true);
                    $model->setIsNewRecord(count($pkName) == 0);
                }

                foreach ($model->attributes as $_name => $_value) {
                    $this->data[$index][$_name] = $_value;
                }
            }
        }
    }
716346
protected function init() {
        $this->data['objecttable'] = user_evidence::TABLE;
        $this->data['crud'] = 'u';
        $this->data['edulevel'] = self::LEVEL_OTHER;
    }
1097330
public function init()
    {
        Profiler::start('init', 'init');
        $this->initTime = microtime(true);
        $this->init = true;
        Log::d('Initializing framework...');
//        $this->register_error_handler();
        date_default_timezone_set('Europe/Madrid');
        $this->setupLanguage();

        Profiler::stop('init');
        $this->manager = new ModuleManager($this->config, $this->directory);
        $this->manager->init();
        Log::d('Module manager initialized');
        $this->inited = true;

//        Log::d('Modules initialized: ' . count($this->manager->getModules()));
//        Log::d(array_map(function ($a) {
//            return $a->title;
//        }, $this->manager->getModules()));
    }