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

Pass a custom variable to flush() #358

Open
fx1234 opened this issue Oct 13, 2022 · 1 comment
Open

Pass a custom variable to flush() #358

fx1234 opened this issue Oct 13, 2022 · 1 comment

Comments

@fx1234
Copy link

fx1234 commented Oct 13, 2022

We are using the following simple code to flush the Queue:

foreach( $webPush->flush() as $report ){ .... }

The problem is, we need our own variables (the UserID) inside the loop. Is there a way to pass custom variables into the loop? Maybe so that it is available in $report

@tgves
Copy link

tgves commented Jan 31, 2024

any ideas?

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

No branches or pull requests

2 participants