Skip to content

Conversation

@websirnik
Copy link
Contributor

Q A
Branch? 3.x
Bug fix? yes
New feature? o
Deprecations? no
License MIT

Improves the compatibility with the latest Rollbar library. Rollbar has renamed their classes a while ago.

$config = $handler['config'] ?: [];
$config['access_token'] = $handler['token'];
$rollbar = new Definition('RollbarNotifier', [
$rollbar = new Definition('Rollbar\RollbarLogger', [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The signature of the RollbarHandler was modified in Monolog 2.0.0 by Seldaek/monolog#1042. This class must be set conditionally depending on the Monolog version.

In MonologBundle v4, since Monolog 3 is required, we can make this change without condition.

@GromNaN GromNaN added the Bug label Dec 7, 2025
@GromNaN GromNaN force-pushed the patch-1 branch 2 times, most recently from 79beaee to 9e7c69b Compare December 7, 2025 22:58
@GromNaN GromNaN changed the title Update RollbarNotifier to RollbarLogger in DI Fix rollbar handler to use RollbarLogger with Monolog 2+ Dec 7, 2025
@GromNaN
Copy link
Member

GromNaN commented Dec 7, 2025

Thanks for fixing this bug @websirnik.

@GromNaN GromNaN merged commit c58895e into symfony:3.x Dec 7, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants