diff --git a/src/Command/Generate/ModuleCommand.php b/src/Command/Generate/ModuleCommand.php
index <HASH>..<HASH> 100644
--- a/src/Command/Generate/ModuleCommand.php
+++ b/src/Command/Generate/ModuleCommand.php
@@ -268,7 +268,7 @@ class ModuleCommand extends Command
 
         try {
             $module = $input->getOption('module') ?
-              $this->validateModuleName(
+              $this->validator->validateModuleName(
                   $input->getOption('module')
               ) : null;
         } catch (\Exception $error) {
fix failing command [generate:module] (#<I>)