[HttpKernel] fixed usage of false as a valid strategy (for BC)

This commit is contained in:
Fabien Potencier 2013-01-11 09:12:57 +01:00
parent 9f25451134
commit a31a6531c7

View File

@ -126,6 +126,10 @@ class HttpContentRenderer implements EventSubscriberInterface
trigger_error('The "true" value for the "standalone" option is deprecated in version 2.2 and replaced with the "esi" value.', E_USER_DEPRECATED);
$options['standalone'] = 'esi';
} elseif (false === $options['standalone']) {
trigger_error('The "false" value for the "standalone" option is deprecated in version 2.2 and replaced with the "default" value.', E_USER_DEPRECATED);
$options['standalone'] = 'default';
} elseif ('js' === $options['standalone']) {
trigger_error('The "js" value for the "standalone" option is deprecated in version 2.2 and replaced with the "hinclude" value.', E_USER_DEPRECATED);