Skip to content

Commit

Permalink
composer test
Browse files Browse the repository at this point in the history
  • Loading branch information
DariaKunoichi committed Feb 4, 2025
1 parent 9c34a06 commit 063824a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/BugsnagServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ private function setupQueueForLaravelVapor(QueueManager $queue)
*/
public function register()
{
echo("DARIA LOG REGISTER!");
$this->app->singleton('bugsnag', function (Container $app) {
$config = $app->config->get('bugsnag');
$client = new Client(new Configuration($config['api_key']), new LaravelResolver($app), $this->getGuzzle($config));
Expand Down Expand Up @@ -501,6 +502,7 @@ protected function setupPaths(Client $client, Container $app, array $config)
*/
protected function setupSessionTracking(Client $client, $endpoint, $events)
{
echo("DARIA SESSION TRACKING");
$client->setAutoCaptureSessions(true);
if (!is_null($endpoint)) {
$client->setSessionEndpoint($endpoint);
Expand Down Expand Up @@ -560,9 +562,12 @@ protected function isSessionTrackingAllowed($config)
{
// Session support removed in Lumen 5.3 - only setup automatic session
// tracking if the session function is avaiable
return isset($config['auto_capture_sessions'])
$isAllowed = isset($config['auto_capture_sessions'])
&& $config['auto_capture_sessions']
&& function_exists('session');
echo("DARIA IS SESSION ALLOWED: ");
echo $isAllowed ? 'true' : 'false';
return $isAllowed;
}

/**
Expand All @@ -572,6 +577,7 @@ protected function isSessionTrackingAllowed($config)
*/
public function provides()
{
echo("DARIA PROVIDES");
return ['bugsnag', 'bugsnag.tracker', 'bugsnag.logger', 'bugsnag.multi'];
}
}

0 comments on commit 063824a

Please sign in to comment.