-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
Route
, Group
and MatchingResult
dispatcher independent
- Loading branch information
Showing
13 changed files
with
232 additions
and
431 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
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
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
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,34 @@ | ||
# Upgrading Instructions for Yii Router | ||
|
||
This file contains the upgrade notes for the Yii Router. | ||
These notes highlight changes that could break your application when you upgrade it from one major version to another. | ||
|
||
## 4.0.0 | ||
|
||
In this release classes `Route`, `Group` and `MatchingResult` are made dispatcher independent. Now you don't can inject | ||
own middleware dispatcher to group or to route. | ||
|
||
The following backward incompatible changes have been made. | ||
|
||
### `Route` | ||
|
||
- Removed parameter `$dispatcher` from `Route` creating methods: `get()`, `post()`, `put()`, `delete()`, `patch()`, | ||
`head()`, `options()`, `methods()`. | ||
- Removed methods `Route::injectDispatcher()` and `Route::withDispatcher()`. | ||
- `Route::getData()` changes: | ||
- removed elements `dispatcherWithMiddlewares` and `hasDispatcher`; | ||
- added element `enabledMiddlewares`. | ||
|
||
### `Group` | ||
|
||
- Removed parameter `$dispatcher` from `Group::create()` method. | ||
- Removed method `Group::withDispatcher()`. | ||
- `Group::getData()` changes: | ||
- removed element `hasDispatcher`; | ||
- key `items` renamed to `routes`; | ||
- key `middlewareDefinitions` renamed to `enabledMiddlewares`. | ||
|
||
### `MatchingResult` | ||
|
||
- Removed `MatchingResult` implementation from `MiddlewareInterface`, so it is no longer middleware. | ||
- Removed method `MatchingResult::process()`. |
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
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
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
Oops, something went wrong.