|
@@ -33,8 +33,6 @@ class DateTimeToLocalizedStringTransformer extends BaseDateTimeTransformer
|
|
|
*/
|
|
|
protected function configure()
|
|
|
{
|
|
|
- parent::configure();
|
|
|
-
|
|
|
$this->addOption('date_format', self::MEDIUM);
|
|
|
$this->addOption('time_format', self::SHORT);
|
|
|
$this->addOption('input_timezone', 'UTC');
|
|
@@ -47,6 +45,8 @@ class DateTimeToLocalizedStringTransformer extends BaseDateTimeTransformer
|
|
|
if (!in_array($this->getOption('time_format'), self::$formats, true)) {
|
|
|
throw new \InvalidArgumentException(sprintf('The option "time_format" is expected to be one of "%s". Is "%s"', implode('", "', self::$formats), $this->getOption('time_format')));
|
|
|
}
|
|
|
+
|
|
|
+ parent::configure();
|
|
|
}
|
|
|
|
|
|
/**
|