Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cache] remove deprecated PSR-16 implementations et al. #31760

Merged
merged 1 commit into from Jun 2, 2019

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented May 31, 2019

Q A
Branch? master
Bug fix? no
New feature? no
BC breaks? yes
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

\o/

(use Psr16Cache instead)

*/
public function reset()
{
$this->clear();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't just doing the same thing as clear without the return better ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We must implement both: clear() for psr-6, reset() for service-contracts.
This is copy/paste from current implementations that exist in traits.

*
* @return \Memcached
*
* @throws \ErrorException When invalid options or servers are provided
Copy link
Contributor

@samnela samnela May 31, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

throws \ErrorException or InvalidArgumentException ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you found a mismatch, please submit a fix on branch 4.2. this PR is only moving code around.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, thanks for the explanation.

@nicolas-grekas nicolas-grekas merged commit 38a67f8 into symfony:master Jun 2, 2019
nicolas-grekas added a commit that referenced this pull request Jun 2, 2019
…(nicolas-grekas)

This PR was merged into the 5.0-dev branch.

Discussion
----------

[Cache] remove deprecated PSR-16 implementations et al.

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | yes
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

\o/

(use `Psr16Cache` instead)

Commits
-------

38a67f8 [Cache] remove deprecated PSR-16 implementations et al.
@nicolas-grekas nicolas-grekas deleted the cache-cleanup branch June 2, 2019 07:16
nicolas-grekas added a commit that referenced this pull request Jul 7, 2021
This PR was merged into the 5.2 branch.

Discussion
----------

[Cache] Remove MemcachedTrait

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | N/A
| License       | MIT
| Doc PR        | N/A

This trait is not used anywhere. It had been removed once, with #31760. But it resurfaced, presumably because of a bad merge. It is flagged as ``@internal``, so I think we can safely delete it.

Commits
-------

5fb4fd4 [Cache] Remove MemcachedTrait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants