title: ZF3 - Call a function with parameters in factories' Module class
body: <p>I'm new in ZendFramework3 and I just want to know if it's possible to call a function with more arguments than just the serviceManager in factories (within my Module class) : (Is it possible to pass an argument next to the <code>$sm</code> argument?)</p>
  
  <pre><code>//class Module
  
  //getConfig()
  //getServiceConfig()
  
  public function getControllerConfig()
  {
      return [
          'factories' =&gt; [
              Controller\ModuleController::class =&gt; function ($sm) {
                  return new ModuleController($sm);
              }
          ]
      ];
  }
  </code></pre>