-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor #4 Deprecate the CacheEncoderDecorator (sstok)
This PR was merged into the 1.1-dev branch. labels: deprecation Discussion ---------- | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | | License | MIT The round trip of fetching cached encoded/decoded data is heavier then the performance gained. And therefor caching the decoded results is no longer considered a good practice. Commits ------- ea138c6 Deprecate the CacheEncoderDecorator
- Loading branch information
Showing
3 changed files
with
22 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,14 @@ | ||
# ChangeLog | ||
|
||
The changelog describes what is "Added", "Removed", "Changed" or "Fixed" between each release. | ||
|
||
## v1.1.0 | ||
|
||
### Deprecated | ||
|
||
* The `Rollerworks\Component\UriEncoder\Encoder\CacheEncoderDecorator` | ||
is deprecated. | ||
|
||
The round trip of fetching cached encoded/decoded data is heavier then the | ||
performance gained. And therefor caching the decoded results is no longer | ||
considered a good practice. |
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 |
---|---|---|
|
@@ -14,11 +14,15 @@ | |
use Rollerworks\Component\UriEncoder\CacheAdapterInterface; | ||
use Rollerworks\Component\UriEncoder\UriEncoderInterface; | ||
|
||
@trigger_error('The '.__NAMESPACE__.'\CacheEncoderDecorator class is deprecated since version 1.1, to be removed in 2.0.', E_USER_DEPRECATED); | ||
|
||
/** | ||
* CacheEncoderDecorator keeps a cached version of original data | ||
* and delegates calls back to the original Encoder when no there is no cache. | ||
* | ||
* @author Sebastiaan Stok <[email protected]> | ||
* | ||
* @deprecated since version 1.1, to be removed in 2.0. | ||
*/ | ||
class CacheEncoderDecorator implements UriEncoderInterface | ||
{ | ||
|