-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mark some properties and classes as readonly
- Loading branch information
1 parent
12f7357
commit 06f3d60
Showing
6 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,10 +29,10 @@ | |
* | ||
* @author Javier Eguiluz <[email protected]> | ||
*/ | ||
final class CheckRequirementsSubscriber implements EventSubscriberInterface | ||
final readonly class CheckRequirementsSubscriber implements EventSubscriberInterface | ||
{ | ||
public function __construct( | ||
private readonly EntityManagerInterface $entityManager | ||
private EntityManagerInterface $entityManager | ||
) { | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,14 +26,14 @@ | |
* | ||
* @author Oleg Voronkovich <[email protected]> | ||
*/ | ||
final class CommentNotificationSubscriber implements EventSubscriberInterface | ||
final readonly class CommentNotificationSubscriber implements EventSubscriberInterface | ||
{ | ||
public function __construct( | ||
private readonly MailerInterface $mailer, | ||
private readonly UrlGeneratorInterface $urlGenerator, | ||
private readonly TranslatorInterface $translator, | ||
private MailerInterface $mailer, | ||
private UrlGeneratorInterface $urlGenerator, | ||
private TranslatorInterface $translator, | ||
#[Autowire('%app.notifications.email_sender%')] | ||
private readonly string $sender | ||
private string $sender | ||
) { | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,10 +23,10 @@ | |
* @author Ryan Weaver <[email protected]> | ||
* @author Javier Eguiluz <[email protected]> | ||
*/ | ||
final class ControllerSubscriber implements EventSubscriberInterface | ||
final readonly class ControllerSubscriber implements EventSubscriberInterface | ||
{ | ||
public function __construct( | ||
private readonly SourceCodeExtension $twigExtension | ||
private SourceCodeExtension $twigExtension | ||
) { | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters