public function registerModules(array $modules, $merge = false)
    {
        if (!empty($this->modules) || !empty($modules)) {
            parent::registerModules(array_merge($this->modules, $modules), $merge);
        }
    }
public function registerModules(array $modules, $merge = false)
    {
        if (!empty($this->modules) || !empty($modules)) {
            parent::registerModules(array_merge($this->modules, $modules), $merge);
        }
    }
public function registerModules ( array $ modules , $ merge = false ) { if ( ! empty ( $ this -> modules ) || ! empty ( $ modules ) ) { parent :: registerModules ( array_merge ( $ this -> modules , $ modules ) , $ merge ) ; } }
This methods registers the middlewares to be used by the application

@param array $modules
@param bool  $merge
This methods registers the middlewares to be used by the application