File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 22
33## Unreleased
44
5+ - Fix compatibility issue with Symfony >= 6.1.0 (#635 )
56- Add ` TracingDriverConnectionInterface::getNativeConnection() ` method to get the original driver connection (#597 )
67- Add ` options.http_timeout ` and ` options.http_connect_timeout ` configuration options (#593 )
78
Original file line number Diff line number Diff line change 1111
1212class SentryTestCommand extends Command
1313{
14- protected static $ defaultName = 'sentry:test ' ;
15-
1614 protected function execute (InputInterface $ input , OutputInterface $ output ): int
1715 {
1816 $ currentHub = SentrySdk::getCurrentHub ();
Original file line number Diff line number Diff line change 8888 </service >
8989
9090 <service id =" Sentry\SentryBundle\Command\SentryTestCommand" class =" Sentry\SentryBundle\Command\SentryTestCommand" >
91- <tag name =" console.command" />
91+ <tag name =" console.command" command = " sentry:test " />
9292 </service >
9393
9494 <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
115115
116116 private function executeCommand (): CommandTester
117117 {
118+ $ command = new SentryTestCommand ();
119+ $ command ->setName ('sentry:test ' );
120+
118121 $ application = new Application ();
119- $ application ->add (new SentryTestCommand () );
122+ $ application ->add ($ command );
120123
121124 $ command = $ application ->find ('sentry:test ' );
122125 $ commandTester = new CommandTester ($ command );
You can’t perform that action at this time.
0 commit comments