Skip to content

Commit

Permalink
Changed service provider
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Helldar committed Dec 2, 2021
1 parent e7dfd7f commit d2323ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 42 deletions.
14 changes: 2 additions & 12 deletions src/Concerns/BaseServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@
use DragonCode\Support\Facades\Helpers\Ables\Arrayable;
use Illuminate\Support\ServiceProvider;
use LaravelLang\Publisher\Constants\Config;
use LaravelLang\Publisher\Exceptions\ProviderNotDefinedException;

class BaseServiceProvider extends ServiceProvider
abstract class BaseServiceProvider extends ServiceProvider
{
protected $provider;
abstract protected function getProvider(): string;

public function register(): void
{
Expand All @@ -42,15 +41,6 @@ protected function registerProvider(): void
$this->setConfig($plugins);
}

protected function getProvider(): string
{
if ($this->provider) {
return $this->provider;
}

throw new ProviderNotDefinedException();
}

protected function push(array $plugins): array
{
return Arrayable::of($plugins)
Expand Down
30 changes: 0 additions & 30 deletions src/Exceptions/ProviderNotDefinedException.php

This file was deleted.

0 comments on commit d2323ec

Please sign in to comment.