private function dispatchModules($hook)
    {
        foreach ($this->modules[$hook] as $module) {
            if (method_exists($module, 'run')) {
                $module->run();
            }
        }
    }
private function dispatchModules($hook)
    {
        foreach ($this->modules[$hook] as $module) {
            if (method_exists($module, 'run')) {
                $module->run();
            }
        }
    }
private function dispatchModules ( $ hook ) { foreach ( $ this -> modules [ $ hook ] as $ module ) { if ( method_exists ( $ module , 'run' ) ) { $ module -> run ( ) ; } } }
Run all the registered modules
@param string $hook Hook module name
@throws \OtherCode\Rest\Exceptions\RestException
Run all the registered modules