Skip to content

[Lock] Deprecate Filesystem/LockHandler #23724

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

Merged
merged 1 commit into from
Aug 1, 2017

Conversation

jderusse
Copy link
Member

@jderusse jderusse commented Jul 31, 2017

Q A
Branch? 3.4
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? yes
Tests pass? yes
Fixed tickets
License MIT
Doc PR symfony/symfony-docs#8243

This PR deprecate the Filesystem\LockHandler in favor of Lock\SemaphoreStore and Lock\FlockStore.

Copy link
Member

@chalasr chalasr left a comment

Choose a reason for hiding this comment

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

The console composer.json needs an update (replacing the filesystem requirement by lock)

@@ -11,6 +11,8 @@

namespace Symfony\Component\Filesystem;

@trigger_error(sprintf('The %s class is deprecated since version 3.4 and will be removed in 4.0. Use the SemaphoreStore or FlockStore class instead.', LockHandler::class), E_USER_DEPRECATED);

use Symfony\Component\Filesystem\Exception\IOException;

/**
Copy link
Member

Choose a reason for hiding this comment

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

* @deprecated since ...

@@ -11,6 +11,8 @@

namespace Symfony\Component\Filesystem;

@trigger_error(sprintf('The %s class is deprecated since version 3.4 and will be removed in 4.0. Use the SemaphoreStore or FlockStore class instead.', LockHandler::class), E_USER_DEPRECATED);
Copy link
Member

Choose a reason for hiding this comment

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

getting this notice while using the standalone filesystem, I would try to find the SemaphoreStore in the filesystem component. I would use FQCNs or prepend Lock here

Copy link
Member Author

Choose a reason for hiding this comment

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

right

UPGRADE-3.4.md Outdated
@@ -62,7 +69,7 @@ FrameworkBundle
* The `Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\TranslatorPass`
class has been deprecated and will be removed in 4.0. Use the
`Symfony\Component\Translation\DependencyInjection\TranslatorPass` class instead.

Copy link
Member

Choose a reason for hiding this comment

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

should be reverted

@jderusse jderusse force-pushed the lock-deprecate-fs branch 6 times, most recently from 1dde55b to 33ab87f Compare July 31, 2017 09:08
@chalasr
Copy link
Member

chalasr commented Jul 31, 2017

fabbot needs some love

@jderusse jderusse force-pushed the lock-deprecate-fs branch from 33ab87f to 8a80505 Compare July 31, 2017 09:41
@jderusse jderusse force-pushed the lock-deprecate-fs branch from 8a80505 to 67ecc71 Compare July 31, 2017 09:53
Copy link
Member

@chalasr chalasr left a comment

Choose a reason for hiding this comment

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

👍

@chalasr chalasr added this to the 3.4 milestone Jul 31, 2017
@fabpot
Copy link
Member

fabpot commented Aug 1, 2017

Thank you @jderusse.

@fabpot fabpot merged commit 67ecc71 into symfony:3.4 Aug 1, 2017
fabpot added a commit that referenced this pull request Aug 1, 2017
This PR was merged into the 3.4 branch.

Discussion
----------

[Lock] Deprecate Filesystem/LockHandler

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        | symfony/symfony-docs#8243

This PR deprecate the `Filesystem\LockHandler` in favor of `Lock\SemaphoreStore` and `Lock\FlockStore`.

Commits
-------

67ecc71 Deprecate Filesystem/LockHandler
nicolas-grekas added a commit that referenced this pull request Aug 3, 2017
This PR was merged into the 4.0-dev branch.

Discussion
----------

[Lock] Remove Filesystem\LockHandler

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

This PR remove the deprecated LockHandler by #23724

Test won't pass as long as the branch 3.4 (and fixed deprecated tests) is not merged back into master.

Commits
-------

39ab789 Remove Filesystem\LockHandler
fabpot added a commit that referenced this pull request Sep 1, 2017
This PR was merged into the 4.0-dev branch.

Discussion
----------

[Lock] Remove old version check

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

Because minimal required version PHP is currenty 7.1.3.

ping @jderusse

Commits
-------

d817f98 Remove old version check
@fabpot fabpot mentioned this pull request Oct 18, 2017
@fabpot fabpot mentioned this pull request Oct 19, 2017
javiereguiluz added a commit to symfony/symfony-docs that referenced this pull request Jan 9, 2018
…eguiluz)

This PR was merged into the 3.4 branch.

Discussion
----------

[Lock] Deprecate Filesystem/LockHandler

This PR deprecate the Filesystem\LockHandler in favor of Lock\SemaphoreStore and Lock\FlockStore.

see: symfony/symfony#23724

Commits
-------

cb771c3 Reword
af6dc34 Minor reword
800bdd7 Deprecate Filesystem/LockHandler
@jderusse jderusse deleted the lock-deprecate-fs branch August 2, 2019 12:16
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.

4 participants