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

Keep di52 compatibility #102

Merged
merged 6 commits into from
Nov 9, 2023
Merged

Keep di52 compatibility #102

merged 6 commits into from
Nov 9, 2023

Conversation

Camwyn
Copy link
Contributor

@Camwyn Camwyn commented Nov 9, 2023

This removes the use of bind() in a way that is not compatible with di52 containers.

This is causing fatals in TEC product as they use the di52 container and bind always tries to build a class ( it would use getVar/setVar instead)

It also adds a safety net on send_events() in the case where $events is null.

BTRIA-2105

This removes the use of `bind()` in a way that is not compatible with di52 containers.

It also adds a safety net on `send_events()` in the case that `$events` is null
@Camwyn Camwyn requested review from borkweb and tarecord November 9, 2023 16:11
@Camwyn Camwyn self-assigned this Nov 9, 2023
src/Telemetry/Events/Event_Subscriber.php Show resolved Hide resolved
src/Telemetry/Events/Event_Subscriber.php Outdated Show resolved Hide resolved
Camwyn and others added 2 commits November 9, 2023 11:17
alter the logic in send_events()

Co-authored-by: Matthew Batchelder <[email protected]>
src/Telemetry/Events/Event_Subscriber.php Outdated Show resolved Hide resolved
@Camwyn Camwyn requested review from lucatume and borkweb November 9, 2023 16:25
borkweb
borkweb previously approved these changes Nov 9, 2023
@borkweb borkweb dismissed their stale review November 9, 2023 16:59

Double checking something

@Camwyn Camwyn merged commit 79f7a04 into main Nov 9, 2023
10 checks passed
@Camwyn Camwyn deleted the fix/di52-compatible-events branch November 9, 2023 18:29
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

Successfully merging this pull request may close these issues.

2 participants