Skip to content

Commit 3d011e0

Browse files
committed
Merge branch '3.4' into 4.0
* 3.4: [Serializer] fix undefined class [FrameworkBundle] fix DI extension tests
2 parents 77465e3 + d2a316f commit 3d011e0

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/templating_no_assets.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<?php
22

33
$container->loadFromExtension('framework', array(
4+
'assets' => array(
5+
'enabled' => true,
6+
),
47
'templating' => array(
58
'engines' => array('php', 'twig'),
69
),

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/xml/templating_no_assets.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
77

88
<framework:config>
9+
<framework:assets enabled="true" />
910
<framework:templating>
1011
<framework:engine>php</framework:engine>
1112
<framework:engine>twig</framework:engine>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
framework:
2+
assets:
3+
enabled: true
24
templating:
35
engines: [php, twig]

src/Symfony/Component/Serializer/Normalizer/DateTimeNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
8080
$timezone = $this->getTimezone($context);
8181

8282
if ('' === $data || null === $data) {
83-
throw new UnexpectedValueException('The data is either an empty string or null, you should pass a string that can be parsed with the passed format or a valid DateTime string.');
83+
throw new NotNormalizableValueException('The data is either an empty string or null, you should pass a string that can be parsed with the passed format or a valid DateTime string.');
8484
}
8585

8686
if (null !== $dateTimeFormat) {

0 commit comments

Comments
 (0)