Skip to content

Commit ff41f3d

Browse files
committed
Added comments to priority
1 parent 8778259 commit ff41f3d

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

src/Name/Generator/CommandNameGenerator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public function add(string $regexp, NameGeneratorInterface $generator): CommandN
2828
public static function getSubscribedEvents(): array
2929
{
3030
return [
31+
// Subscribe after route was resolved and request attributes were set
3132
ConsoleCommandEvent::class => ['onCommand', 31],
3233
ConsoleTerminateEvent::class => ['onTerminate'],
3334
];

src/Name/Generator/ControllerNameGenerator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class ControllerNameGenerator implements NameGeneratorInterface, EventSubscriber
1414
public static function getSubscribedEvents(): array
1515
{
1616
return [
17+
// Subscribe after route was resolved and request attributes were set
1718
RequestEvent::class => ['onRequest', 31],
1819
TerminateEvent::class => ['onTerminate', -16384],
1920
];

src/Name/Generator/DefaultNameGenerator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class DefaultNameGenerator implements NameGeneratorInterface, EventSubscriberInt
1616
public static function getSubscribedEvents(): array
1717
{
1818
return [
19+
// Subscribe after route was resolved and request attributes were set
1920
RequestEvent::class => ['onRequest', 31],
2021
ConsoleCommandEvent::class => ['onCommand', 31],
2122
TerminateEvent::class => ['onTerminate', -16384],

src/Name/Generator/RequestNameGenerator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public function add(string $regexp, NameGeneratorInterface $generator): RequestN
2828
public static function getSubscribedEvents(): array
2929
{
3030
return [
31+
// Subscribe after route was resolved and request attributes were set
3132
RequestEvent::class => ['onRequest', 31],
3233
TerminateEvent::class => ['onTerminate', -16384],
3334
];

0 commit comments

Comments
 (0)