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

Adjust when some runtime deprecation notices are triggered and use Symfony's trigger_deprecation() helper #450

Merged
merged 1 commit into from
Oct 18, 2022

Conversation

mbabker
Copy link
Contributor

@mbabker mbabker commented May 4, 2022

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets fixes #448
License MIT

This PR will do two things:

  1. Adjusts when some runtime deprecations (especially for those which are unfixable in consuming applications) to be triggered when the deprecated element is actually used instead of arbitrarily emitting them when the file is loaded
  2. Uses Symfony's trigger_deprecation() helper for runtime deprecations; this is designed to be a "pluggable" function that can allow someone to customize the functionality in their applications if so desired (plus the function's signature forces key information at the front of each message which makes scanning the messages a bit better IMO)

@mbabker mbabker requested a review from a team as a code owner May 4, 2022 16:56
@mbabker mbabker mentioned this pull request May 4, 2022
@mbabker mbabker force-pushed the less-noisy-deprecations branch from 0c243da to fa7300a Compare May 4, 2022 16:58
@loic425
Copy link
Member

loic425 commented May 4, 2022

@lchrusciel I think it should be based on bug fix branch (1.9)

@mbabker mbabker force-pushed the less-noisy-deprecations branch from fa7300a to 500a389 Compare June 28, 2022 14:16
@mbabker mbabker force-pushed the less-noisy-deprecations branch from 500a389 to 356936d Compare June 28, 2022 14:19
@Zales0123 Zales0123 added Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.). DX Issues and PRs aimed at improving Developer eXperience. labels Oct 18, 2022
Copy link
Member

@Zales0123 Zales0123 left a comment

Choose a reason for hiding this comment

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

Seems as a good DX improvement 👍

@Zales0123 Zales0123 merged commit e3df72d into Sylius:1.10 Oct 18, 2022
@Zales0123
Copy link
Member

Thank you, @mbabker! 🏅

@mbabker mbabker deleted the less-noisy-deprecations branch October 18, 2022 11:08
Zales0123 added a commit that referenced this pull request Oct 18, 2022
- [#341](#341) Dropping usage of Request->get ([@loic425](https://github.com/loic425), [@Zales0123](https://github.com/Zales0123))
- [#450](#450) Adjust when some runtime deprecation notices are triggered and use Symfony's trigger_deprecation() helper ([@mbabker](https://github.com/mbabker))
- [#467](#467) [README] Add development section and update links ([@lchrusciel](https://github.com/lchrusciel))
- [#478](#478) Add tests with grids ([@loic425](https://github.com/loic425))
- [#487](#487) Make CsrfTokenManager public ([@Zales0123](https://github.com/Zales0123))
- [#488](#488) Return 422 status code when the form fails ([@belmeopmenieuwesim](https://github.com/belmeopmenieuwesim), [@Zales0123](https://github.com/Zales0123))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DX Issues and PRs aimed at improving Developer eXperience. Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change deprecations
4 participants