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

IpTraceable listener is not documented #2131

Closed
ghost opened this issue Jun 10, 2020 · 3 comments
Closed

IpTraceable listener is not documented #2131

ghost opened this issue Jun 10, 2020 · 3 comments
Labels
Documentation Help Me Help & Support Requests Stale

Comments

@ghost
Copy link

ghost commented Jun 10, 2020

Hello. I'm building my Symfony 5 application, but I can't find how to configure a listener for IpTraceable. Searched far and wide both in IpTraceable docs and Symfony 4 docs, but there is nothing related.

@deivid11
Copy link

Any news on this or a reference link to know how to configure ipTraceable?

@AkenRoberts AkenRoberts added the Help Me Help & Support Requests label Aug 25, 2020
@AkenRoberts
Copy link
Member

Huh, I'm surprised it was never integrated into the Symfony bundle. (Ref: stof/StofDoctrineExtensionsBundle#233)

Metadata aside, you just need to have Symfony call IpTraceableListener::setIpValue() at some point with the current IP address. The "Code of subscriber class" example in the IP Traceable docs shows an example. You can also use the Symfony bundle's Blameable implementation as another example.

@github-actions
Copy link

github-actions bot commented May 5, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label May 5, 2022
@github-actions github-actions bot closed this as completed Jun 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Help Me Help & Support Requests Stale
Projects
None yet
Development

No branches or pull requests

3 participants