getModuleManager() ->loadModule('eventdb', $basedir) ->loadModule('monitoring', $basedir . '/vendor/icingaweb2/modules/monitoring'); $user = new User('icingaadmin'); $user->setPermissions(array('*')); Auth::getInstance()->setAuthenticated($user); } }