From 76f6c721e9679ec1c2f58c147f1b06bbf72509cb Mon Sep 17 00:00:00 2001 From: Zankaria Date: Wed, 16 Oct 2024 22:49:19 +0200 Subject: [PATCH] context.php: fix missing include file --- inc/context.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/inc/context.php b/inc/context.php index e747a68d..9e5caef0 100644 --- a/inc/context.php +++ b/inc/context.php @@ -1,8 +1,7 @@ definitions[$name])) { - throw new RuntimeException("Could not find a dependency named $name"); + throw new \RuntimeException("Could not find a dependency named $name"); } $ret = $this->definitions[$name]; @@ -69,13 +68,13 @@ function build_context(array $config): Context { $config['captcha']['hcaptcha']['sitekey'] ); default: - throw new RuntimeException('No remote captcha service available'); + throw new \RuntimeException('No remote captcha service available'); } }, NativeCaptchaQuery::class => function($c) { $config = $c->get('config'); if ($config['captcha']['provider'] !== 'native') { - throw new RuntimeException('No native captcha service available'); + throw new \RuntimeException('No native captcha service available'); } return new NativeCaptchaQuery( $c->get(HttpDriver::class),