api/symfony/Component/HttpKernel/Attribute/MapDateTime.yaml
2024-09-26 02:03:21 -07:00

45 lines
1.3 KiB
YAML

name: MapDateTime
class_comment: null
dependencies:
- name: DateTimeValueResolver
type: class
source: Symfony\Component\HttpKernel\Controller\ArgumentResolver\DateTimeValueResolver
- name: ValueResolverInterface
type: class
source: Symfony\Component\HttpKernel\Controller\ValueResolverInterface
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: format
default: 'null'
- name: disabled
default: 'false'
- name: resolver
default: DateTimeValueResolver::class
comment: '# * Controller parameter tag to configure DateTime arguments.
# */
# #[\Attribute(\Attribute::TARGET_PARAMETER)]
# class MapDateTime extends ValueResolver
# {
# /**
# * @param string|null $format The DateTime
format to use, @see https://php.net/datetime.format
# * @param bool $disabled Whether this
value resolver is disabled; this allows to enable a value resolver globally while
disabling it in specific cases
# * @param class-string<ValueResolverInterface>|string $resolver The name of the
resolver to use'
traits:
- Symfony\Component\HttpKernel\Controller\ArgumentResolver\DateTimeValueResolver
- Symfony\Component\HttpKernel\Controller\ValueResolverInterface
interfaces: []