]> BookStack Code Mirror - bookstack/commitdiff
Standardised facade usage to use via their FQCN
authorDan Brown <redacted>
Sun, 26 Sep 2021 14:37:55 +0000 (15:37 +0100)
committerDan Brown <redacted>
Sun, 26 Sep 2021 14:37:55 +0000 (15:37 +0100)
Done via Laravel Shift Workbench

15 files changed:
app/Actions/TagRepo.php
app/Auth/UserRepo.php
app/Console/Commands/RegenerateSearch.php
app/Http/Controllers/Auth/RegisterController.php
app/Providers/AppServiceProvider.php
app/Providers/AuthServiceProvider.php
app/Providers/RouteServiceProvider.php
app/Uploads/AttachmentService.php
app/Uploads/ImageService.php
tests/Auth/AuthTest.php
tests/Auth/SocialAuthTest.php
tests/Auth/UserInviteTest.php
tests/PublicActionTest.php
tests/RecycleBinTest.php
tests/ThemeTest.php

index ca65b78e8e2dab7b7742204f6decd8e0c5a908f2..90d657e517b5fc781718581cf74291466c79562c 100644 (file)
@@ -4,7 +4,7 @@ namespace BookStack\Actions;
 
 use BookStack\Auth\Permissions\PermissionService;
 use BookStack\Entities\Models\Entity;
-use DB;
+use Illuminate\Support\Facades\DB;
 use Illuminate\Support\Collection;
 
 class TagRepo
index e1a040fc2ceb8850dd52b046556690add64bd606..6d48f12402060edbbe56f5660301dc1183ca5dcc 100644 (file)
@@ -15,7 +15,7 @@ use Exception;
 use Illuminate\Database\Eloquent\Builder;
 use Illuminate\Database\Eloquent\Collection;
 use Illuminate\Pagination\LengthAwarePaginator;
-use Log;
+use Illuminate\Support\Facades\Log;
 
 class UserRepo
 {
index 3dc3ec0af0e98b33bd3f1d741540dd13e1d319c5..a285f6d72bfaa3aa0a68cef2ea9c430d436f7abd 100644 (file)
@@ -3,7 +3,7 @@
 namespace BookStack\Console\Commands;
 
 use BookStack\Entities\Tools\SearchIndex;
-use DB;
+use Illuminate\Support\Facades\DB;
 use Illuminate\Console\Command;
 
 class RegenerateSearch extends Command
index bd1ffeac2e6661f3c391613c30d8315d7e58d0d7..209827d6db800d7a75a7a568ec9a1af8468f4355 100644 (file)
@@ -12,7 +12,7 @@ use BookStack\Http\Controllers\Controller;
 use Illuminate\Foundation\Auth\RegistersUsers;
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\Hash;
-use Validator;
+use Illuminate\Support\Facades\Validator;
 
 class RegisterController extends Controller
 {
index 59704f4a1898311aff5ed176d7c2e93955e6ed27..b016df56317af41c9b042e2adc5e497cea1bdb3d 100644 (file)
@@ -2,7 +2,7 @@
 
 namespace BookStack\Providers;
 
-use Blade;
+use Illuminate\Support\Facades\Blade;
 use BookStack\Auth\Access\LoginService;
 use BookStack\Auth\Access\SocialAuthService;
 use BookStack\Entities\BreadcrumbsViewComposer;
@@ -18,8 +18,8 @@ use Illuminate\Database\Eloquent\Relations\Relation;
 use Illuminate\Support\Facades\View;
 use Illuminate\Support\ServiceProvider;
 use Laravel\Socialite\Contracts\Factory as SocialiteFactory;
-use Schema;
-use URL;
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Support\Facades\URL;
 
 class AppServiceProvider extends ServiceProvider
 {
index 71b7ab016200bb085c5383584463313c673c1eb6..0d9dca7a12b8c8d7fe7bbc0d6bcc12c8b2461dfd 100644 (file)
@@ -2,7 +2,7 @@
 
 namespace BookStack\Providers;
 
-use Auth;
+use Illuminate\Support\Facades\Auth;
 use BookStack\Api\ApiTokenGuard;
 use BookStack\Auth\Access\ExternalBaseUserProvider;
 use BookStack\Auth\Access\Guards\LdapSessionGuard;
index 8f0dab400c7efd4ce00902d7ef94874a654e516e..b60443a452895fc19a8c4a5dcffdfeb03f339b52 100644 (file)
@@ -3,7 +3,7 @@
 namespace BookStack\Providers;
 
 use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
-use Route;
+use Illuminate\Support\Facades\Route;
 
 class RouteServiceProvider extends ServiceProvider
 {
index 298d53a04c109ff42175318fd3ed69f9166ea375..5ba627040a7ba6cedb811f628d16a51ec2e6d709 100644 (file)
@@ -8,7 +8,7 @@ use Illuminate\Contracts\Filesystem\Factory as FileSystem;
 use Illuminate\Contracts\Filesystem\FileNotFoundException;
 use Illuminate\Contracts\Filesystem\Filesystem as FileSystemInstance;
 use Illuminate\Support\Str;
-use Log;
+use Illuminate\Support\Facades\Log;
 use Symfony\Component\HttpFoundation\File\UploadedFile;
 
 class AttachmentService
index 51ddf9bdc55912c3884e9b126aa3b92634a66ab2..13d17f697b14fb470dc9d0da1b7724a1dc7c84a2 100644 (file)
@@ -3,7 +3,7 @@
 namespace BookStack\Uploads;
 
 use BookStack\Exceptions\ImageUploadException;
-use DB;
+use Illuminate\Support\Facades\DB;
 use ErrorException;
 use Exception;
 use Illuminate\Contracts\Cache\Repository as Cache;
index a718b14b670f5c40e7f198a216d1908e3c58c100..d037b57011fada64a1c1755ab9418b9ea03af828 100644 (file)
@@ -7,7 +7,7 @@ use BookStack\Auth\User;
 use BookStack\Entities\Models\Page;
 use BookStack\Notifications\ConfirmEmail;
 use BookStack\Notifications\ResetPassword;
-use DB;
+use Illuminate\Support\Facades\DB;
 use Illuminate\Support\Facades\Notification;
 use Tests\TestCase;
 use Tests\TestResponse;
index 44b9e4ce1ce94425654887ae404b80d8e9ec2644..f70263dd278ae1a8bf93efe26c896bda300d97e3 100644 (file)
@@ -5,7 +5,7 @@ namespace Tests\Auth;
 use BookStack\Actions\ActivityType;
 use BookStack\Auth\SocialAccount;
 use BookStack\Auth\User;
-use DB;
+use Illuminate\Support\Facades\DB;
 use Laravel\Socialite\Contracts\Factory;
 use Laravel\Socialite\Contracts\Provider;
 use Mockery;
index c5c4b01af065ea607471c64562e554f8c51feed3..d994dd5b9059f1048eb9fceb0c400b01ce866648 100644 (file)
@@ -6,9 +6,9 @@ use BookStack\Auth\Access\UserInviteService;
 use BookStack\Auth\User;
 use BookStack\Notifications\UserInvite;
 use Carbon\Carbon;
-use DB;
+use Illuminate\Support\Facades\DB;
 use Illuminate\Support\Str;
-use Notification;
+use Illuminate\Support\Facades\Notification;
 use Tests\TestCase;
 
 class UserInviteTest extends TestCase
index ae0c0ff95c6d454f649f0fe535b374a775a4d459..953a7dde06dce5818f9f26a6612b81f56fcf59eb 100644 (file)
@@ -2,7 +2,7 @@
 
 namespace Tests;
 
-use Auth;
+use Illuminate\Support\Facades\Auth;
 use BookStack\Auth\Permissions\PermissionService;
 use BookStack\Auth\Permissions\RolePermission;
 use BookStack\Auth\Role;
index 1c54452124fbb088631edb961931739377244270..dbdc6daf6edec41851a7e7044311117d933b8e87 100644 (file)
@@ -8,7 +8,7 @@ use BookStack\Entities\Models\Chapter;
 use BookStack\Entities\Models\Deletion;
 use BookStack\Entities\Models\Entity;
 use BookStack\Entities\Models\Page;
-use DB;
+use Illuminate\Support\Facades\DB;
 use Illuminate\Support\Carbon;
 
 class RecycleBinTest extends TestCase
index bab85be7a5e4ff9f8c0dd8bff3abbc785cb54cbc..2d08fdb4a4f39b442231f442e6ea545a7753844f 100644 (file)
@@ -7,7 +7,7 @@ use BookStack\Entities\Models\Page;
 use BookStack\Entities\Tools\PageContent;
 use BookStack\Facades\Theme;
 use BookStack\Theming\ThemeEvents;
-use File;
+use Illuminate\Support\Facades\File;
 use Illuminate\Http\Request;
 use Illuminate\Http\Response;
 use League\CommonMark\ConfigurableEnvironmentInterface;