Pass a custom variable to flush()
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
Direzione di ricerca
Start by reading the flush() entry point and how each $report is constructed. Determine whether the API can carry a caller-supplied UserID through the loop, then define and verify a supported usage pattern that makes the custom value available alongside each report.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- PHP
- Stelle
- 1.9k
- Fork
- 312
- Merge medio
- 1g 15h
- PR unite (30g)
- 1
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di web-push-libs/web-push-php
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
web-push-libs/web-push-php#441 ·
-
Opera push not working? Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
web-push-libs/web-push-php#430 · 1 reazione ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
web-push-libs/web-push-php#429 · 3 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
web-push-libs/web-push-php#412 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
web-push-libs/web-push-php#411 · 5 commenti ·
Tutte le issue di web-push-libs/web-push-php
Issue simili
-
tooling
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
UX
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
ProfessionalWiki/NeoWiki#1525 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
bug customer-reported
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
MagnaCapax/PMSS#949 ·
-
responsive-media kses allow-list strips clipPathUnits, collapsing objectBoundingBox clip paths Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
Automattic/static-site-importer#1829 ·