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

#1176 Deprecate (Blacklist|WellKnown) schema filters #1286

Merged
merged 1 commit into from
Feb 11, 2021

Conversation

ostrolucky
Copy link
Member

No description provided.

@ostrolucky ostrolucky added this to the 2.3.0 milestone Jan 30, 2021
@nicolas-grekas
Copy link
Member

Should we unregister the pass in DoctrineBundle?
I don't think it provides many benefits now, isn't it?

@ostrolucky
Copy link
Member Author

In linked issue @greg0ire pointed out this is still being used by eg. Lock component. Is that no longer the case and there is no longer any reliance from Symfony on these? If no, only then I'm ok to unregister the pass.

@nicolas-grekas
Copy link
Member

/cc @weaverryan any input?

@ostrolucky
Copy link
Member Author

ostrolucky commented Feb 11, 2021

Alright, enough time passed. I even pinged @weaverryan on Slack. Merging.

@ostrolucky ostrolucky merged commit cf98a24 into 2.3.x Feb 11, 2021
@greg0ire greg0ire deleted the deprecate-blacklist branch February 11, 2021 16:22
@weaverryan
Copy link
Contributor

Sorry for not being on time. Here's the related PR: symfony/symfony#36655

So Messenger & Cache is no longer needed. For Lock & Session, those still need more work. We should really implement those correctly (so that they can be fully removed here)... but it's not done yet.

Btw, in this PR, we deprecate WellKnownSchemaFilterPass. Will this trigger deprecations in all projects since it's still being used in DoctrineBundle? And if I do see this deprecation, how should I update my code to remove it?

Thanks!

@ostrolucky
Copy link
Member Author

Btw, in this PR, we deprecate WellKnownSchemaFilterPass. Will this trigger deprecations in all projects since it's still being used in DoctrineBundle? And if I do see this deprecation, how should I update my code to remove it?

I don't know. But if it does, I don't see how can we fix this here in doctrine-bundle. We need to mark those classes as deprecated, but at the same time we should internally keep compiler pass registered for BC. In such case I think it would be best if symfony didn't report such deprecations, only if users outside of this bundle are instantiating deprecated compiler pass class.

@nicolas-grekas
Copy link
Member

Symfony won't report it because there is no runtime deprecation. A static analyzer will of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants