Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/RollbarServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,18 @@ public function register(): void
*
* This is where we can start listening for events.
*
* @param RollbarLogger $logger This parameter is injected by the service container, and is required to ensure that
* the Rollbar logger is initialized.
* @return void
*
* @since 8.1.0
*/
public function boot(RollbarLogger $logger): void
public function boot(): void
{
if ($this->stop() === true) {
return;
}

//ensure that the Rollbar logger is initialized
app(RollbarLogger::class);
// Set up telemetry if it is enabled.
if (null !== Rollbar::getTelemeter()) {
$this->setupTelemetry($this->getConfigs($this->app));
Expand Down