-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c3181f2
commit c6d2b2b
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# UPGRADE FROM 4.x to 5.0 | ||
|
||
## FeedContentProviderInterface is replaced with FeedProviderInterface | ||
|
||
In version 4.x `StreamController` expects a `FeedContentProviderInterface` to provide the feed. Now it takes a `FeedProviderInterface` which is slightly different because it takes a `Request` as a parameter and no longer an array. | ||
|
||
Before : | ||
|
||
```php | ||
public function getFeedContent(array $options) : FeedInterface | ||
|
||
``` | ||
|
||
Now : | ||
|
||
```php | ||
public function getFeed(Request $request): FeedInterface | ||
|
||
``` | ||
|
||
## DoctrineFeedContentProvider is removed | ||
|
||
As its implementation is too narrow to let developers do what they need, it's better to simply remove it. | ||
|
||
### That's it | ||
|
||
There are no other modifications to upgrade into 5.0. |