diff --git a/inc/context.php b/inc/context.php index c3ebef04..e747a68d 100644 --- a/inc/context.php +++ b/inc/context.php @@ -83,6 +83,10 @@ function build_context(array $config): Context { $config['captcha']['native']['provider_check'], $config['captcha']['native']['extra'] ); + }, + CacheDriver::class => function($c) { + // Use the global for backwards compatibility. + return \cache::getCache(); } ]); }