From ad3e64901463c5ed8c6d7288c6524c941c73fa6c Mon Sep 17 00:00:00 2001 From: Anastas Mironov Date: Wed, 31 Jul 2024 17:02:17 +0900 Subject: [PATCH] refactor: no needed register policy --- src/LocalizationsServiceProvider.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/LocalizationsServiceProvider.php b/src/LocalizationsServiceProvider.php index c66c23f..b60a960 100644 --- a/src/LocalizationsServiceProvider.php +++ b/src/LocalizationsServiceProvider.php @@ -4,7 +4,6 @@ use AdminKit\Localizations\Commands\InstallCommand; use AdminKit\Localizations\Providers\RouteServiceProvider; -use Illuminate\Support\Facades\Gate; use Spatie\LaravelPackageTools\Package; use Spatie\LaravelPackageTools\PackageServiceProvider; @@ -37,8 +36,6 @@ public function bootingPackage() { $this->publishFiles(); - $this->bindingPolicies(); - $this->bindingRepositories(); } @@ -60,11 +57,6 @@ protected function publishFiles(): self return $this; } - protected function bindingPolicies(): void - { - Gate::policy(\AdminKit\Localizations\Models\Localization::class, \AdminKit\Localizations\Policies\LocalizationPolicy::class); - } - protected function bindingRepositories(): void { $repository = \AdminKit\Localizations\UI\API\Repositories\LocalizationRepository::class;