File tree Expand file tree Collapse file tree 6 files changed +13
-13
lines changed Expand file tree Collapse file tree 6 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 2929 *
3030 * @author Javier Eguiluz <javier.eguiluz@gmail.com>
3131 */
32- final class CheckRequirementsSubscriber implements EventSubscriberInterface
32+ final readonly class CheckRequirementsSubscriber implements EventSubscriberInterface
3333{
3434 public function __construct (
35- private readonly EntityManagerInterface $ entityManager
35+ private EntityManagerInterface $ entityManager
3636 ) {
3737 }
3838
Original file line number Diff line number Diff line change 2626 *
2727 * @author Oleg Voronkovich <oleg-voronkovich@yandex.ru>
2828 */
29- final class CommentNotificationSubscriber implements EventSubscriberInterface
29+ final readonly class CommentNotificationSubscriber implements EventSubscriberInterface
3030{
3131 public function __construct (
32- private readonly MailerInterface $ mailer ,
33- private readonly UrlGeneratorInterface $ urlGenerator ,
34- private readonly TranslatorInterface $ translator ,
32+ private MailerInterface $ mailer ,
33+ private UrlGeneratorInterface $ urlGenerator ,
34+ private TranslatorInterface $ translator ,
3535 #[Autowire('%app.notifications.email_sender% ' )]
36- private readonly string $ sender
36+ private string $ sender
3737 ) {
3838 }
3939
Original file line number Diff line number Diff line change 2323 * @author Ryan Weaver <weaverryan@gmail.com>
2424 * @author Javier Eguiluz <javier.eguiluz@gmail.com>
2525 */
26- final class ControllerSubscriber implements EventSubscriberInterface
26+ final readonly class ControllerSubscriber implements EventSubscriberInterface
2727{
2828 public function __construct (
29- private readonly SourceCodeExtension $ twigExtension
29+ private SourceCodeExtension $ twigExtension
3030 ) {
3131 }
3232
Original file line number Diff line number Diff line change 2727 *
2828 * @template-implements DataTransformerInterface<Tag[], string>
2929 */
30- final class TagArrayToStringTransformer implements DataTransformerInterface
30+ final readonly class TagArrayToStringTransformer implements DataTransformerInterface
3131{
3232 public function __construct (
33- private readonly TagRepository $ tags
33+ private TagRepository $ tags
3434 ) {
3535 }
3636
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ final class AppExtension extends AbstractExtension
3333 // See https://symfony.com/doc/current/service_container.html#binding-arguments-by-name-or-type
3434 public function __construct (
3535 /** @var string[] */
36- private array $ enabledLocales ,
36+ private readonly array $ enabledLocales ,
3737 ) {
3838 }
3939
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ final class SourceCodeExtension extends AbstractExtension
3636 private $ controller ;
3737
3838 public function __construct (
39- private FileLinkFormatter $ fileLinkFormat ,
39+ private readonly FileLinkFormatter $ fileLinkFormat ,
4040 #[Autowire('%kernel.project_dir% ' )]
4141 private string $ projectDir ,
4242 ) {
You can’t perform that action at this time.
0 commit comments