File tree Expand file tree Collapse file tree 4 files changed +20
-4
lines changed Expand file tree Collapse file tree 4 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public function getConfigTreeBuilder()
2626 ->defaultNull ()
2727 ->end ()
2828 ->scalarNode ('client ' )
29- ->defaultValue ('Raven_Client ' )
29+ ->defaultValue ('Sentry\SentryBundle\SentrySymfonyClient ' )
3030 ->end ()
3131 ->scalarNode ('environment ' )
3232 ->defaultValue ('%kernel.environment% ' )
Original file line number Diff line number Diff line change 22
33namespace Sentry \SentryBundle \EventListener ;
44
5+ use Sentry \SentryBundle ;
56use Symfony \Component \HttpKernel \Event \GetResponseEvent ;
67use Symfony \Component \HttpKernel \Event \GetResponseForExceptionEvent ;
78use Symfony \Component \HttpKernel \HttpKernelInterface ;
@@ -42,7 +43,7 @@ public function __construct(
4243 array $ skipCapture
4344 ) {
4445 if (!$ client ) {
45- $ client = new \ Raven_Client ();
46+ $ client = new SentrySymfonyClient ();
4647 }
4748
4849 $ this ->tokenStorage = $ tokenStorage ;
Original file line number Diff line number Diff line change 44
55use Symfony \Component \HttpKernel \Bundle \Bundle ;
66
7- class SentryBundle extends Bundle
8- {
7+ class SentryBundle extends Bundle {
8+ const VERSION = ' 0.4.0 ' ;
99}
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Sentry \SentryBundle ;
4+
5+ class SentrySymfonyClient extends \Raven_Client
6+ {
7+ public function __construct ($ dsn =null , $ options =array ())
8+ {
9+ $ options ['sdk ' ] = array (
10+ 'name ' => 'sentry-symfony ' ,
11+ 'version ' => SentryBundle::VERSION ,
12+ );
13+ parent ::__construct ($ dsn , $ options );
14+ }
15+ }
You can’t perform that action at this time.
0 commit comments