8000 [HttpKernel][DataCollectorInterface] Ease compatibility by alcaeus · Pull Request #34650 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[HttpKernel][DataCollectorInterface] Ease compatibility #34650

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

Closed

Conversation

alcaeus
Copy link
Contributor
@alcaeus alcaeus commented Nov 27, 2019
Q A
Branch? 3.4
Bug fix? no
New feature? no
Deprecations? no
Tickets #34230 (comment)
License MIT
Doc PR symfony/symfony-docs#...

Backport of #34230. This allows data collectors in Symfony 3.4 have the same syntax as in 4.3+. Otherwise it's difficult to create code that's compatible with Symfony 3.4 and 5.0 at the same time.

Copy link
Member
@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

Works for me: having upgraded several bundles, it's the single change that requires bumping the minimum Symfony version and that's quite artificial.
This makes ppl create compatibility traits, e.g. https://github.com/snc/SncRedisBundle/blob/master/DataCollector/DataCollectorSymfonyCompatibilityTrait.php

Copy link
Contributor
@fancyweb fancyweb left a comment

Choose a reason for hiding this comment

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

👍 That was the initial plan. Although I can understand that refusing to put it on 3.4 pushes the community to use more recent Symfony versions.

@nicolas-grekas
Copy link
Member

Closing as discussed on the linked PR (#34230 (comment))
Thanks for proposing.

@alcaeus alcaeus deleted the backport-datacollector-compatibility branch November 27, 2019 19:37
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.

5 participants
0