From 683145f45aed4e37413a2edb6add06a6202dc76d Mon Sep 17 00:00:00 2001 From: Edward Yang Date: Fri, 4 Nov 2022 17:14:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/Social/Views/shop/Bootstrap.php | 39 ------------------------- 1 file changed, 39 deletions(-) delete mode 100644 plugins/Social/Views/shop/Bootstrap.php diff --git a/plugins/Social/Views/shop/Bootstrap.php b/plugins/Social/Views/shop/Bootstrap.php deleted file mode 100644 index 5fd6695c..00000000 --- a/plugins/Social/Views/shop/Bootstrap.php +++ /dev/null @@ -1,39 +0,0 @@ - - * @created 2022-10-12 17:33:29 - * @modified 2022-10-12 17:33:29 - */ - -namespace Plugin\Social; - - -class Bootstrap -{ - public function boot() - { - $this->addSocialData(); - } - - /** - * 增加第三方登录方式 - */ - private function addSocialData() - { - add_filter('login.social.buttons', function ($buttons) { - $providers = plugin_setting('social.setting'); - if (empty($providers)) { - return $buttons; - } - - foreach ($providers as $provider) { - $buttons[] = view('Social::shop/social_button', ['provider' => $provider])->render(); - } - return $buttons; - }); - } -}