dispatch_hooks(); } public function dispatch_hooks() { ( new Settings() )->dispatch_actions(); ( new Course() )->dispatch_actions(); } }