From 0300b8f427472410e54203ad5820287cb43f7f4d Mon Sep 17 00:00:00 2001 From: vartrue <1175398345@qq.com> Date: Thu, 3 Nov 2022 16:28:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=BB=91=E5=AE=9A=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=9B=9E=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/EasyWechat.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/EasyWechat.php b/src/EasyWechat.php index f299e22..ab68a0a 100644 --- a/src/EasyWechat.php +++ b/src/EasyWechat.php @@ -98,6 +98,9 @@ protected function getApp(string $appName = self::APP_OFFICIAL_ACCOUNT, $config protected function rebind(ServiceContainer &$app, $rebinds) { foreach ($rebinds as $id => $rebind) { + if (is_callable($rebind)) { + $rebind = call_user_func($rebind); + } $app->rebind($id, $rebind); } }