Skip to content

Commit 85a6096

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

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
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

+5
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ 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+
*
36+
* @return void
3537
*/
3638
public function __construct(
3739
TokenStorageInterface $tokens = null,
@@ -44,6 +46,9 @@ public function __construct(
4446
}
4547

4648
/**
49+
* Define a callback to set the currently authenticated user as the user
50+
* on any BugSnag reports that are sent.
51+
*
4752
* @param \Bugsnag\Report $report
4853
*
4954
* @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' }

example/symfony28/app/config/services.yml

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

66
services:
7-
87
bugsnag_metadata_callback:
98
class: AppBundle\Bugsnag\MetadataCallback
109
tags:

example/symfony31/app/config/services.yml

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

66
services:
7-
87
bugsnag_metadata_callback:
98
class: AppBundle\Bugsnag\MetadataCallback
109
tags:

0 commit comments

Comments
 (0)