From e6ceea1b1b073cea11a5b3af5b6efde338dd8561 Mon Sep 17 00:00:00 2001 From: Kilian Hofmann Date: Wed, 4 Aug 2021 19:14:52 +0200 Subject: [PATCH] Unused use removed --- Authentication.php | 24 ------------------ Plugin.php | 3 ++- channels/.channels.php.swp | Bin 12288 -> 0 bytes channels/channels.php | 18 ------------- controllers/GraphqlKey.php | 1 - controllers/Playground.php | 1 - models/GraphqlKey.php | 1 - models/Settings.php | 1 - ...builder_table_create_deferred_bindings.php | 1 - 9 files changed, 2 insertions(+), 48 deletions(-) delete mode 100644 Authentication.php delete mode 100644 channels/.channels.php.swp delete mode 100644 channels/channels.php diff --git a/Authentication.php b/Authentication.php deleted file mode 100644 index 0a636fe..0000000 --- a/Authentication.php +++ /dev/null @@ -1,24 +0,0 @@ -input('gql_session') === 'SUPER_SECRET_TOKEN') { - return 'false'; - } else { - return 'true'; - } - - return $next($request); - } -} diff --git a/Plugin.php b/Plugin.php index 745582c..fd9459c 100644 --- a/Plugin.php +++ b/Plugin.php @@ -5,6 +5,7 @@ use System\Classes\PluginBase; use App; use Config; use Illuminate\Database\DatabaseManager; +use Illuminate\Support\Facades\Broadcast; use Illuminate\Foundation\AliasLoader; use GermanAirlinesVa\Graphql\Classes\GraphqlServiceProvider; use Nuwave\Lighthouse\Subscriptions\SubscriptionServiceProvider; @@ -43,7 +44,7 @@ class Plugin extends PluginBase $this->app->singleton(DatabaseManager::class, function ($app) { return $app->make('db'); }); - \Illuminate\Support\Facades\Broadcast::routes([ + Broadcast::routes([ 'prefix' => '', 'middleware' => 'GermanAirlinesVA\\Graphql\\Classes\\Authentication', ]); diff --git a/channels/.channels.php.swp b/channels/.channels.php.swp deleted file mode 100644 index b1f0dedbe93b445d4aa48ae15174365ddd33d3c1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12288 zcmeI2QEL-H5XUDzDN+^flSmn((6ltUR$oeL6s)KL`=sqteVE+sUADRGUHA49qAmRd zei8AT2nq^*13!d5IhS05my(cO{Tu5t;;E{?~vcsM$Kn=1G3(5IP@a&(m0Q_$-GF}J{i(B=9Fwe zUSuil9>$*EC1X^a%|0~JZaVKNCqh67oPt2^!usaI?)`fk>qYdP>TSGnefJcJ5+VeI zfDjM@LO=)z0U;m+guwqoz@-&9;btzB4K0>?<&VAmDw_}x0zyCt2mv7=1cZPP5CTF# z2nYcoa1IGj01z$!d|{3M|1W#^c@^LX>oe;U>m%!gb--F;-C}*c0`QL2W<6s)VQsS( zS(jPg+4I}f`y8^7Ckp`~AOwVf5D)@FKnMr{As__)k-+iF79d*Xa%-@rja$LHd8Tar zp$@RsYE92{P{h4RqGnT@FsW6yCnM4LipQ&?QFX0IJDy*^+dG@9Q@AM0Ntb+=bdlSp8-a z=~Enc$nRxHRqma@d*n$vCIZ8Q+sDl5Npc{md3W uYsMAJUotz>0^TYB6UKHN=Y4IM`2NcY!u_Y@Q=qc_*$cJ+9y}@r>VE-!D+0y< diff --git a/channels/channels.php b/channels/channels.php deleted file mode 100644 index 5abfaec..0000000 --- a/channels/channels.php +++ /dev/null @@ -1,18 +0,0 @@ -