Skip to content

Commit

Permalink
Merge pull request #18 from IBEC-BOX/feat/policy
Browse files Browse the repository at this point in the history
refactor: no needed register policy
  • Loading branch information
ast21 authored Jul 31, 2024
2 parents 3b39d0c + ad3e649 commit 2f2ad7f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/LocalizationsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -37,8 +36,6 @@ public function bootingPackage()
{
$this->publishFiles();

$this->bindingPolicies();

$this->bindingRepositories();
}

Expand All @@ -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;
Expand Down

0 comments on commit 2f2ad7f

Please sign in to comment.