protected function checkDependecies(array $dependeny)
{
foreach ($dependeny as $moduleName) {
if (!$this->moduleContainer->offsetExists($this->moduleNamespace . '\\' . $moduleName)) {
$folder = $this->path . DIRECTORY_SEPARATOR . $moduleName;
if (!$this->filesystem->isDirectory($folder)) {
throw new \Exception("Module \"{$moduleName}\" - not found", 1);
}
$this->initModule($folder);
if (!$this->moduleContainer->offsetExists($this->moduleNamespace . '\\' . $moduleName)) {
throw new \Exception("Module \"{$moduleName}\" - don't loaded. Please сheck whether the module is installed and enabled", 1);
}
}
}
}