diff --git a/src/Listener/ModuleResolverListener.php b/src/Listener/ModuleResolverListener.php index bf8543f..b058796 100644 --- a/src/Listener/ModuleResolverListener.php +++ b/src/Listener/ModuleResolverListener.php @@ -29,7 +29,6 @@ public function __invoke(ModuleEvent $e) return false; } - $module = new $class; - return $module; + return new $class; } }