code: public function getModuleManager()
      {
          if (!$this->moduleManager instanceof ModuleManagerInterface) {
              $errMsg = 'Module manager not installed';
              throw new Exception\InvalidModuleManagerException($errMsg);
          }
          return $this->moduleManager;
      }
docs: Возвращает менеджер модулей
  
  @return ModuleManagerInterface
  
  @throws Exception\InvalidModuleManagerException