File tree 4 files changed +6
-4
lines changed
4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Unreleased
4
4
5
+ - Fix compatibility issue with Symfony >= 6.1.0 (#635 )
5
6
- Add ` TracingDriverConnectionInterface::getNativeConnection() ` method to get the original driver connection (#597 )
6
7
- Add ` options.http_timeout ` and ` options.http_connect_timeout ` configuration options (#593 )
7
8
Original file line number Diff line number Diff line change 11
11
12
12
class SentryTestCommand extends Command
13
13
{
14
- protected static $ defaultName = 'sentry:test ' ;
15
-
16
14
protected function execute (InputInterface $ input , OutputInterface $ output ): int
17
15
{
18
16
$ currentHub = SentrySdk::getCurrentHub ();
Original file line number Diff line number Diff line change 88
88
</service >
89
89
90
90
<service id =" Sentry\SentryBundle\Command\SentryTestCommand" class =" Sentry\SentryBundle\Command\SentryTestCommand" >
91
- <tag name =" console.command" />
91
+ <tag name =" console.command" command = " sentry:test " />
92
92
</service >
93
93
94
94
<service id =" Sentry\SentryBundle\Tracing\Doctrine\DBAL\TracingDriverConnectionFactoryInterface" alias =" Sentry\SentryBundle\Tracing\Doctrine\DBAL\TracingDriverConnectionFactory" />
Original file line number Diff line number Diff line change @@ -115,8 +115,11 @@ public function testExecuteFailsDueToMissingClient(): void
115
115
116
116
private function executeCommand (): CommandTester
117
117
{
118
+ $ command = new SentryTestCommand ();
119
+ $ command ->setName ('sentry:test ' );
120
+
118
121
$ application = new Application ();
119
- $ application ->add (new SentryTestCommand () );
122
+ $ application ->add ($ command );
120
123
121
124
$ command = $ application ->find ('sentry:test ' );
122
125
$ commandTester = new CommandTester ($ command );
You can’t perform that action at this time.
0 commit comments