Allows the modulemanager to return null instead of the ModuleModel

This commit is contained in:
Basilius Sauter
2019-04-03 17:25:21 +02:00
parent 248258a8fe
commit 353c4251c4
+1 -1
View File
@@ -162,7 +162,7 @@ class ModuleManager
* @param string $library
* @return Module
*/
public function getModule(string $library): ModuleModel
public function getModule(string $library): ?ModuleModel
{
return $this->g->getEntityManager()->getRepository(ModuleModel::class)->find($library);
}