Skip to content

Commit 7266c14

Browse files
committed
composer test
1 parent 9c34a06 commit 7266c14

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/BugsnagServiceProvider.php

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ private function setupQueueForLaravelVapor(QueueManager $queue)
255255
*/
256256
public function register()
257257
{
258+
echo("DARIA LOG REGISTER!");
258259
$this->app->singleton('bugsnag', function (Container $app) {
259260
$config = $app->config->get('bugsnag');
260261
$client = new Client(new Configuration($config['api_key']), new LaravelResolver($app), $this->getGuzzle($config));
@@ -501,6 +502,7 @@ protected function setupPaths(Client $client, Container $app, array $config)
501502
*/
502503
protected function setupSessionTracking(Client $client, $endpoint, $events)
503504
{
505+
echo("DARIA SESSION TRACKING");
504506
$client->setAutoCaptureSessions(true);
505507
if (!is_null($endpoint)) {
506508
$client->setSessionEndpoint($endpoint);
@@ -560,9 +562,15 @@ protected function isSessionTrackingAllowed($config)
560562
{
561563
// Session support removed in Lumen 5.3 - only setup automatic session
562564
// tracking if the session function is avaiable
563-
return isset($config['auto_capture_sessions'])
564-
&& $config['auto_capture_sessions']
565-
&& function_exists('session');
565+
echo("DARIA IS SESSION ALLOWED: \n");
566+
$isSet = isset($config['auto_capture_sessions']);
567+
$autoCapture = $config['auto_capture_sessions'];
568+
$funcExist = function_exists('session');
569+
570+
echo $isSet ? 'true' : 'false';
571+
echo $autoCapture ? 'true' : 'false';
572+
echo $funcExist ? 'true' : 'false';
573+
return $isSet && $autoCapture && $funcExist;
566574
}
567575

568576
/**
@@ -572,6 +580,7 @@ protected function isSessionTrackingAllowed($config)
572580
*/
573581
public function provides()
574582
{
583+
echo("DARIA PROVIDES");
575584
return ['bugsnag', 'bugsnag.tracker', 'bugsnag.logger', 'bugsnag.multi'];
576585
}
577586
}

0 commit comments

Comments
 (0)