platform/api/symfony/Component/HttpKernel/Attribute/MapDateTime.yaml

46 lines
1.3 KiB
YAML
Raw Normal View History

2024-09-02 17:44:11 +00:00
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: []