-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] Tag deprecated services #16011
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
Conversation
@@ -7,6 +7,7 @@ | |||
<services> | |||
<service id="form.csrf_provider" class="Symfony\Component\Form\Extension\Csrf\CsrfProvider\CsrfTokenManagerAdapter"> | |||
<argument type="service" id="security.csrf.token_manager" /> | |||
<deprecated>The "%service_id%" service is deprecated since Symfony 2.8 and will be removed in 3.0. Use the "security.csrf.token_manager" service instead.</deprecated> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is deprecated since older versions than 2.8 actually
6e97c12
to
882265e
Compare
--> | ||
<service id="request" scope="request" synthetic="true" synchronized="true" /> | ||
<service id="request" scope="request" synthetic="true" synchronized="true"> | ||
<deprecated>The "%service_id%" service is deprecated since Symfony 2.8 and will be removed in 3.0. Use the "request_stack" service instead.</deprecated> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We actually deprecated it in 2.7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed (and the other comments also)
882265e
to
87e8e8f
Compare
Thank you @nicolas-grekas. |
…kas) This PR was merged into the 2.8 branch. Discussion ---------- [FrameworkBundle] Tag deprecated services | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Tag deprecated services as such. Some are deprecated by transitivity with their class definition. Having given some workshops on migrating to sf 3.0, the deprecation triggered at the class level is cryptic to most. Triggering a more tailored one about the service is really important to me in order to help users migrate. Commits ------- 87e8e8f [FrameworkBundle] Tag deprecated services
Tag deprecated services as such. Some are deprecated by transitivity with their class definition.
Having given some workshops on migrating to sf 3.0, the deprecation triggered at the class level is cryptic to most. Triggering a more tailored one about the service is really important to me in order to help users migrate.