register('system'); foreach ($hooks->generate('startApplication') as $result) { if (!isset($result)) { continue; } if (is_string($result)) { $result = [ $result ]; } if (is_array($result)) { foreach ($result as $path) { if (is_string($path ?? null) && file_exists($path)) { require $path; } } } }