api/symfony/Component/HttpFoundation/RequestMatcher/MethodRequestMatcher.yaml

36 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2024-09-26 09:03:21 +00:00
name: MethodRequestMatcher
class_comment: '# * Checks the HTTP method of a Request.
# *
# * @author Fabien Potencier <fabien@symfony.com>'
dependencies:
- name: Request
type: class
source: Symfony\Component\HttpFoundation\Request
- name: RequestMatcherInterface
type: class
source: Symfony\Component\HttpFoundation\RequestMatcherInterface
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: methods
comment: "# * Checks the HTTP method of a Request.\n# *\n# * @author Fabien Potencier\
\ <fabien@symfony.com>\n# */\n# class MethodRequestMatcher implements RequestMatcherInterface\n\
# {\n# /**\n# * @var string[]\n# */\n# private array $methods = [];\n# \n# /**\n\
# * @param string[]|string $methods An HTTP method or an array of HTTP methods\n\
# * Strings can contain a comma-delimited list\
\ of methods"
- name: matches
visibility: public
parameters:
- name: request
comment: null
traits:
- Symfony\Component\HttpFoundation\Request
- Symfony\Component\HttpFoundation\RequestMatcherInterface
interfaces:
- RequestMatcherInterface