Allows the modulemanager to return null instead of the ModuleModel
This commit is contained in:
@@ -162,7 +162,7 @@ class ModuleManager
|
|||||||
* @param string $library
|
* @param string $library
|
||||||
* @return Module
|
* @return Module
|
||||||
*/
|
*/
|
||||||
public function getModule(string $library): ModuleModel
|
public function getModule(string $library): ?ModuleModel
|
||||||
{
|
{
|
||||||
return $this->g->getEntityManager()->getRepository(ModuleModel::class)->find($library);
|
return $this->g->getEntityManager()->getRepository(ModuleModel::class)->find($library);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user