File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
docs/platforms/php/guides/symfony Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -44,23 +44,15 @@ namespace App\Controller;
4444
4545use Psr\Log\LoggerInterface;
4646use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
47- use Symfony\Component\Routing\Annotation \Route;
47+ use Symfony\Component\Routing\Attribute \Route;
4848
4949class SentryTestController extends AbstractController
5050{
51- /**
52- * @var LoggerInterface
53- */
54- private $logger;
55-
56- public function __construct(LoggerInterface $logger)
51+ public function __construct(private LoggerInterface $logger)
5752 {
58- $this->logger = $logger;
5953 }
6054
61- /**
62- * @Route(name="sentry_test", path="/_sentry-test")
63- */
55+ #[Route('/_sentry-test', name: 'sentry_test')]
6456 public function testLog()
6557 {
6658 // the following code will test if monolog integration logs to sentry
You can’t perform that action at this time.
0 commit comments