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 29
29
*
30
30
* @author Javier Eguiluz <javier.eguiluz@gmail.com>
31
31
*/
32
- final class CheckRequirementsSubscriber implements EventSubscriberInterface
32
+ final readonly class CheckRequirementsSubscriber implements EventSubscriberInterface
33
33
{
34
34
public function __construct (
35
- private readonly EntityManagerInterface $ entityManager
35
+ private EntityManagerInterface $ entityManager
36
36
) {
37
37
}
38
38
Original file line number Diff line number Diff line change 26
26
*
27
27
* @author Oleg Voronkovich <oleg-voronkovich@yandex.ru>
28
28
*/
29
- final class CommentNotificationSubscriber implements EventSubscriberInterface
29
+ final readonly class CommentNotificationSubscriber implements EventSubscriberInterface
30
30
{
31
31
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 ,
35
35
#[Autowire('%app.notifications.email_sender% ' )]
36
- private readonly string $ sender
36
+ private string $ sender
37
37
) {
38
38
}
39
39
Original file line number Diff line number Diff line change 23
23
* @author Ryan Weaver <weaverryan@gmail.com>
24
24
* @author Javier Eguiluz <javier.eguiluz@gmail.com>
25
25
*/
26
- final class ControllerSubscriber implements EventSubscriberInterface
26
+ final readonly class ControllerSubscriber implements EventSubscriberInterface
27
27
{
28
28
public function __construct (
29
- private readonly SourceCodeExtension $ twigExtension
29
+ private SourceCodeExtension $ twigExtension
30
30
) {
31
31
}
32
32
Original file line number Diff line number Diff line change 27
27
*
28
28
* @template-implements DataTransformerInterface<Tag[], string>
29
29
*/
30
- final class TagArrayToStringTransformer implements DataTransformerInterface
30
+ final readonly class TagArrayToStringTransformer implements DataTransformerInterface
31
31
{
32
32
public function __construct (
33
- private readonly TagRepository $ tags
33
+ private TagRepository $ tags
34
34
) {
35
35
}
36
36
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ final class AppExtension extends AbstractExtension
33
33
// See https://symfony.com/doc/current/service_container.html#binding-arguments-by-name-or-type
34
34
public function __construct (
35
35
/** @var string[] */
36
- private array $ enabledLocales ,
36
+ private readonly array $ enabledLocales ,
37
37
) {
38
38
}
39
39
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ final class SourceCodeExtension extends AbstractExtension
36
36
private $ controller ;
37
37
38
38
public function __construct (
39
- private FileLinkFormatter $ fileLinkFormat ,
39
+ private readonly FileLinkFormatter $ fileLinkFormat ,
40
40
#[Autowire('%kernel.project_dir% ' )]
41
41
private string $ projectDir ,
42
42
) {
You can’t perform that action at this time.
0 commit comments