Skip to content

Commit 2d3fab4

Browse files
authored
Merge pull request #508 from cvergne/2.2
Fixes #424 - Wrong Kernel Event / EventPriorities in Errors Example
2 parents e343f34 + 40adb11 commit 2d3fab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/errors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ final class ProductManager implements EventSubscriberInterface
4343
public static function getSubscribedEvents(): array
4444
{
4545
return [
46-
KernelEvents::REQUEST => ['checkProductAvailability', EventPriorities::POST_DESERIALIZE],
46+
KernelEvents::VIEW => ['checkProductAvailability', EventPriorities::PRE_VALIDATE],
4747
];
4848
}
4949

0 commit comments

Comments
 (0)