1616use Symfony \Component \HttpKernel \Exception \NotFoundHttpException ;
1717use Symfony \Component \Mime \MimeTypesInterface ;
1818
19- /**
20- * @psalm-suppress UndefinedDocblockClass
21- * @psalm-suppress UndefinedClass
22- */
2319final class ShowFeedAction
2420{
25- private FeedRepositoryInterface $ repository ;
26-
27- private ChannelContextInterface $ channelContext ;
28-
29- private LocaleContextInterface $ localeContext ;
30-
31- private FeedPathGeneratorInterface $ feedPathGenerator ;
32-
3321 /** @var FilesystemInterface|FilesystemOperator */
3422 private $ filesystem ;
3523
36- private MimeTypesInterface $ mimeTypes ;
37-
3824 /**
39- * @psalm-suppress UndefinedDocblockClass
40- *
4125 * @param FilesystemInterface|FilesystemOperator $filesystem
4226 */
4327 public function __construct (
44- FeedRepositoryInterface $ repository ,
45- ChannelContextInterface $ channelContext ,
46- LocaleContextInterface $ localeContext ,
47- FeedPathGeneratorInterface $ feedPathGenerator ,
28+ private readonly FeedRepositoryInterface $ repository ,
29+ private readonly ChannelContextInterface $ channelContext ,
30+ private readonly LocaleContextInterface $ localeContext ,
31+ private readonly FeedPathGeneratorInterface $ feedPathGenerator ,
4832 $ filesystem ,
49- MimeTypesInterface $ mimeTypes ,
33+ private readonly MimeTypesInterface $ mimeTypes ,
5034 ) {
51- $ this ->repository = $ repository ;
52- $ this ->channelContext = $ channelContext ;
53- $ this ->localeContext = $ localeContext ;
54- $ this ->feedPathGenerator = $ feedPathGenerator ;
5535 if (interface_exists (FilesystemInterface::class) && $ filesystem instanceof FilesystemInterface) {
5636 $ this ->filesystem = $ filesystem ;
5737 } elseif ($ filesystem instanceof FilesystemOperator) {
@@ -63,7 +43,6 @@ public function __construct(
6343 FilesystemOperator::class,
6444 ));
6545 }
66- $ this ->mimeTypes = $ mimeTypes ;
6746 }
6847
6948 public function __invoke (string $ code ): StreamedResponse
0 commit comments