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

Allow to install the bundle without Symfony security #912

Merged
merged 3 commits into from
Feb 27, 2025

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.

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

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