Skip to content

Commit

Permalink
Merge pull request #169 from Laravel-Lang/11.1-split
Browse files Browse the repository at this point in the history
Changed service provider
  • Loading branch information
Andrey Helldar authored Dec 2, 2021
2 parents b15fbcc + d2323ec commit f5efc1c
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 f5efc1c

Please sign in to comment.