api/symfony/Component/Webhook/Client/RequestParser.yaml
2024-09-26 02:03:21 -07:00

72 lines
2.2 KiB
YAML

name: RequestParser
class_comment: '# * @author Fabien Potencier <fabien@symfony.com>'
dependencies:
- name: ChainRequestMatcher
type: class
source: Symfony\Component\HttpFoundation\ChainRequestMatcher
- name: HeaderBag
type: class
source: Symfony\Component\HttpFoundation\HeaderBag
- name: Request
type: class
source: Symfony\Component\HttpFoundation\Request
- name: IsJsonRequestMatcher
type: class
source: Symfony\Component\HttpFoundation\RequestMatcher\IsJsonRequestMatcher
- name: MethodRequestMatcher
type: class
source: Symfony\Component\HttpFoundation\RequestMatcher\MethodRequestMatcher
- name: RequestMatcherInterface
type: class
source: Symfony\Component\HttpFoundation\RequestMatcherInterface
- name: RemoteEvent
type: class
source: Symfony\Component\RemoteEvent\RemoteEvent
- name: InvalidArgumentException
type: class
source: Symfony\Component\Webhook\Exception\InvalidArgumentException
- name: RejectWebhookException
type: class
source: Symfony\Component\Webhook\Exception\RejectWebhookException
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: algo
default: '''sha256'''
- name: signatureHeaderName
default: '''Webhook-Signature'''
- name: eventHeaderName
default: '''Webhook-Event'''
- name: idHeaderName
default: '''Webhook-Id'''
comment: null
- name: getRequestMatcher
visibility: protected
parameters: []
comment: null
- name: doParse
visibility: protected
parameters:
- name: request
- name: secret
comment: null
- name: validateSignature
visibility: private
parameters:
- name: headers
- name: body
- name: secret
comment: null
traits:
- Symfony\Component\HttpFoundation\ChainRequestMatcher
- Symfony\Component\HttpFoundation\HeaderBag
- Symfony\Component\HttpFoundation\Request
- Symfony\Component\HttpFoundation\RequestMatcher\IsJsonRequestMatcher
- Symfony\Component\HttpFoundation\RequestMatcher\MethodRequestMatcher
- Symfony\Component\HttpFoundation\RequestMatcherInterface
- Symfony\Component\RemoteEvent\RemoteEvent
- Symfony\Component\Webhook\Exception\InvalidArgumentException
- Symfony\Component\Webhook\Exception\RejectWebhookException
interfaces: []