Skip to content

Commit edb9ca6

Browse files
author
Sam Stevens
committed
CS requests
1 parent fc6bf1e commit edb9ca6

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

BugsnagBundle.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class BugsnagBundle extends Bundle
1616
const VERSION = '1.0.0';
1717

1818
/**
19-
* {@inheritdoc}
19+
* Setup the callback registering pass.
2020
*
2121
* @param \Symfony\Component\DependencyInjection\ContainerBuilder $container
2222
*

Callbacks/UserSettingCallback.php

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class UserSettingCallback
3232
* @param null|\Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokens
3333
* @param null|\Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface $checker
3434
* @param bool $setUser
35+
* @return void
3536
*/
3637
public function __construct(
3738
TokenStorageInterface $tokens = null,
@@ -44,6 +45,9 @@ public function __construct(
4445
}
4546

4647
/**
48+
* Define a callback to set the currently authenticated user as the user
49+
* on any BugSnag reports that are sent.
50+
*
4751
* @param \Bugsnag\Report $report
4852
*
4953
* @return void

example/symfony27/app/config/services.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ parameters:
44
# parameter_name: value
55

66
services:
7-
87
bugsnag_metadata_callback:
98
class: AppBundle\Bugsnag\MetadataCallback
109
tags:
11-
- { name: 'bugsnag.callback' }
10+
- { name: 'bugsnag.callback' }

0 commit comments

Comments
 (0)