Skip to content

Commit 356219a

Browse files
author
Hugo Hamon
committed
[AppBundle] inject dependency explicitly in DateTimePickerType class.
1 parent 83ff99a commit 356219a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AppBundle/Form/Type/DateTimePickerType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ class DateTimePickerType extends AbstractType
3030
{
3131
private $formatConverter;
3232

33-
public function __construct()
33+
public function __construct(MomentFormatConverter $converter)
3434
{
35-
$this->formatConverter = new MomentFormatConverter();
35+
$this->formatConverter = $converter;
3636
}
3737

3838
/**

0 commit comments

Comments
 (0)