Skip to content

Commit b17e7d3

Browse files
committed
Add descriptions to event listeners
1 parent ba93574 commit b17e7d3

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

src/EventListener/EncryptionListener.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,18 @@
1111

1212
readonly class EncryptionListener
1313
{
14+
/**
15+
* @param Connection $connection unused, but this causes it to be loaded by the container
16+
*/
1417
public function __construct(
1518
private Connection $connection,
1619
private Encryption $encryption,
1720
) {
1821
}
1922

23+
/**
24+
* Configure the custom encrypted text type for Doctrine at the start of every request (and after the container is built).
25+
*/
2026
#[AsEventListener(RequestEvent::class)]
2127
public function configureDoctrineEncryptedTextType(): void
2228
{

src/EventListener/SecurityListener.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ public function __construct(
2525
) {
2626
}
2727

28+
/**
29+
* Deny access to all pages with IsGrantedAccess unless public access is enabled or the user is logged in.
30+
*/
2831
#[AsEventListener]
2932
public function checkAccessIsGranted(ControllerEvent $event): void
3033
{
@@ -35,6 +38,9 @@ public function checkAccessIsGranted(ControllerEvent $event): void
3538
}
3639
}
3740

41+
/**
42+
* Validate authorization for requests using an access token.
43+
*/
3844
#[AsEventListener]
3945
public function checkAccessTokenIsValid(CheckPassportEvent $event): void
4046
{

0 commit comments

Comments
 (0)