Issue #3436136 by dineshkumarbollu, joachim: Improve documentation for OptionsRequestSubscriber

(cherry picked from commit 4b54857210)
merge-requests/7849/head
Dave Long 2024-04-17 14:39:14 +01:00
parent b918dd3238
commit 7506af29b5
No known key found for this signature in database
GPG Key ID: ED52AE211E142771
1 changed files with 3 additions and 2 deletions

View File

@ -12,8 +12,9 @@ use Symfony\Component\Routing\Route;
/** /**
* Handles options requests. * Handles options requests.
* *
* Therefore it sends an options response using all methods on all possible * Listens to KernelEvents::REQUEST and responds to OPTIONS requests by
* routes. * providing an Allow header listing all the HTTP methods allowed for the
* requested routes.
*/ */
class OptionsRequestSubscriber implements EventSubscriberInterface { class OptionsRequestSubscriber implements EventSubscriberInterface {