<?phpdeclare(strict_types=1);namespaceApp\EventSubscriber;useJose\Bundle\JoseFramework\Event\Events;useJose\Bundle\JoseFramework\Event\JWSBuiltSuccessEvent;useJose\Bundle\JoseFramework\Event\JWSVerificationFailureEvent;useJose\Bundle\JoseFramework\Event\JWSVerificationSuccessEvent;useSymfony\Component\EventDispatcher\EventSubscriberInterface;classJwsSubscriberimplementsEventSubscriberInterface{publicstaticfunctiongetSubscribedEvents() {return [Events::JWS_VERIFICATION_SUCCESS => ['onJwsVerificationSuccess'],Events::JWS_VERIFICATION_FAILURE => ['onJwsVerificationFailure'],Events::JWS_BUILT_SUCCESS => ['onJwsBuiltSuccess'],Events::JWS_BUILT_FAILURE => ['onJwsBuiltFailure'], ]; }publicfunctiononJwsVerificationSuccess(JWSVerificationSuccessEvent $event):void {// Do something here }publicfunctiononJwsVerificationFailure(JWSVerificationFailureEvent $event):void {// Do something here }publicfunctiononJwsBuiltSuccess(JWSBuiltSuccessEvent $event):void {// Do something here }publicfunctiononJwsBuiltFailure(JWSBuiltFailureEvent $event):void {// Do something here }}