Skip to content

Commit

Permalink
Повышена минимальная версия Laravel до 5.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaoda committed Aug 23, 2020
1 parent f901949 commit 5ade54b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ composer require appwilio/russianpost-sdk
```

При использовании фреймворка [Laravel](https://laravel.com/) SDK автоматически регистрирует доступные сервисы.
> Минимальная версия Laravel — 5.8.
## Логирование

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"psr/log": "^1.1"
},
"require-dev": {
"illuminate/support": "5.1 - 5.8",
"monolog/monolog": "^1.25",
"illuminate/support": "^5.8|^6.0|^7.0",
"monolog/monolog": "^1.25|^2.0",
"phpunit/phpunit": "^7.5",
"symfony/var-dumper": "^4.3"
},
Expand Down
7 changes: 3 additions & 4 deletions src/LaravelServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,14 @@
use GuzzleHttp\Client as GuzzleClient;
use Illuminate\Support\ServiceProvider;
use Illuminate\Contracts\Container\Container;
use Illuminate\Contracts\Support\DeferrableProvider;
use Appwilio\RussianPostSDK\Tracking\PacketAccessClient;
use Appwilio\RussianPostSDK\Tracking\SingleAccessClient;
use Appwilio\RussianPostSDK\Dispatching\DispatchingClient;

class LaravelServiceProvider extends ServiceProvider
class LaravelServiceProvider extends ServiceProvider implements DeferrableProvider
{
protected $defer = true;

public function register()
public function register(): void
{
$this->app->singleton(SingleAccessClient::class, function (Container $app) {
$config = $app['config']['services.russianpost.tracking'];
Expand Down

0 comments on commit 5ade54b

Please sign in to comment.