Skip to content

Conversation

@Nyholm
Copy link
Contributor

@Nyholm Nyholm commented Feb 26, 2025

I have a semi small micro service running Symfony. We dont use any security feature (it is a private network). I would love to use this package but I also dont want to install dependencies not needed.

I saw that the symfony/security-core and symfony/security-http packages are only used in LoginListener. I added check to remove that service if symfony/security-core is not installed. I also improved the logic between src/Resources/config/services.xml and the compiler pass.

Merging this will not affect existing users, since they either have symfony/security-core required or they are not using it.

There is one edge case though. Someone installed this package, configure security (without symfony/security-bundle) AND did not specify symfony/security-core in their composer.json. I find that extremely unlikely but I thought I would mention it.

@cleptric cleptric self-assigned this Feb 26, 2025
Copy link
Member

@cleptric cleptric left a comment

Choose a reason for hiding this comment

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

Thank you!

@cleptric cleptric enabled auto-merge (squash) February 27, 2025 13:59
@cleptric cleptric merged commit 475a958 into getsentry:master Feb 27, 2025
36 of 38 checks passed
@Nyholm
Copy link
Contributor Author

Nyholm commented Feb 27, 2025

Wohoo. Thank you for merging

@cleptric
Copy link
Member

cleptric commented Mar 4, 2025

Was part of 5.2.0, released yesterday.

@Nyholm
Copy link
Contributor Author

Nyholm commented Mar 4, 2025

Wohoo!

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