Skip to content

Commit

Permalink
remove laravel 5.* support
Browse files Browse the repository at this point in the history
remove laravel 5.5 note from readme
  • Loading branch information
Marcel Strahl committed Sep 16, 2020
1 parent 98524a2 commit 9d0b652
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 17 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,13 @@ You are also welcome to use the Issue Tracker to set bugs, improvements or upgra

``` composer require dropelikeit/laravel-jms-serializer ```


### Support note

Laravel 5.* is no longer supported with release v2.0.0 and higher.

### How to use

Laravel 5.5 and later uses Package Auto-Discovery, so you do not need to add the service provider manually.
For Laravel versions below 5.5, the package must be added manually, add the following line in the "providers" array in config/app.php:

```php
Dropelikeit\LaravelJmsSerializer\ServiceProvider::class,
```
Laravel uses Package Auto-Discovery, so you do not need to add the service provider manually.

For example, to use the JMS serializer in a controller, add the ResponseFactory in the constructor.

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
}
],
"require": {
"illuminate/http": "^5.2|^6.0|^7.0",
"illuminate/support": "^5.2|^6.0|^7.0",
"illuminate/contracts": "^5.2|^6.0|^7.0",
"illuminate/http": "^6.0|^7.0",
"illuminate/support": "^6.0|^7.0",
"illuminate/contracts": "^6.0|^7.0",
"jms/serializer": "^3.4",
"doctrine/cache": "^1.10",
"php": "^7.3"
Expand Down Expand Up @@ -41,7 +41,7 @@
"friendsofphp/php-cs-fixer": "^2.16",
"phpunit/phpunit": "^9.3",
"nunomaduro/larastan": "^0.6.4",
"orchestra/testbench": "^3.2|^4.0|^5.0",
"orchestra/testbench": "^4.0|^5.0",
"phpstan/phpstan-phpunit": "^0.12.16"
},
"scripts": {
Expand Down
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9d0b652

Please sign in to comment.