From 16e1fd47a8c08e7e53586c23bc5682f24b32900d Mon Sep 17 00:00:00 2001 From: benson Date: Mon, 1 May 2023 13:52:25 +0800 Subject: [PATCH] updated application.php --- appinfo/application.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/appinfo/application.php b/appinfo/application.php index ea49bbf..d28381a 100644 --- a/appinfo/application.php +++ b/appinfo/application.php @@ -59,11 +59,13 @@ class Application extends App implements IBootstrap $config = Helper::getYtdlConfig($uid); return new Ytdl($config); }); - - $context->registerService(Settings::class, function (ContainerInterface $c) use ($uid){ + + $context->registerService(Settings::class, function (ContainerInterface $c) use ($uid) { return new Settings($uid); }); - + $context->registerService('uid', function (ContainerInterface $c) use ($uid) { + return $uid; + }); //$context->injectFn([$this, 'registerSearchProviders']); } }