1 | <?php |
||
24 | final class TimeFormExtension extends AbstractTypeExtension |
||
25 | { |
||
26 | /** |
||
27 | * @var TimeProviderInterface |
||
28 | */ |
||
29 | private $timeProvider; |
||
30 | |||
31 | /** |
||
32 | * @var TranslatorInterface |
||
33 | */ |
||
34 | private $translator; |
||
35 | |||
36 | /** |
||
37 | * @var array<string, mixed> |
||
38 | */ |
||
39 | private $defaults; |
||
40 | |||
41 | /** |
||
42 | * @param TimeProviderInterface $timeProvider |
||
43 | * @param TranslatorInterface $translator |
||
44 | * @param array $defaults |
||
45 | */ |
||
46 | public function __construct(TimeProviderInterface $timeProvider, TranslatorInterface $translator, array $defaults) |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | public function buildForm(FormBuilderInterface $builder, array $options): void |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | public function finishView(FormView $view, FormInterface $form, array $options): void |
||
83 | |||
84 | /** |
||
85 | * {@inheritdoc} |
||
86 | */ |
||
87 | public function configureOptions(OptionsResolver $resolver): void |
||
100 | |||
101 | /** |
||
102 | * {@inheritdoc} |
||
103 | */ |
||
104 | public function getExtendedType() |
||
110 | |||
111 | /** |
||
112 | * {@inheritdoc} |
||
113 | */ |
||
114 | public static function getExtendedTypes(): iterable |
||
120 | } |
||
121 |