Merge branch '2.3' into 2.5
* 2.3: [TwigBundle] allowed SecurityBundle to use the latest versions of FrameworkBundle [HttpFoundation] Make use of isEmpty() method fix missing comma in YamlDumper [Console] Helper\Table->addRow optimization Conflicts: src/Symfony/Bundle/SecurityBundle/composer.json src/Symfony/Component/Console/Helper/TableHelper.php src/Symfony/Component/DependencyInjection/Tests/Fixtures/containers/container9.php src/Symfony/Component/DependencyInjection/Tests/Fixtures/yaml/services9.yml
This commit is contained in:
commit
bf3e882a0c
@ -26,7 +26,7 @@
|
||||
"symfony/dependency-injection": "~2.3",
|
||||
"symfony/dom-crawler": "~2.0,>=2.0.5",
|
||||
"symfony/form": "~2.4",
|
||||
"symfony/framework-bundle": "~2.4,<2.6.0",
|
||||
"symfony/framework-bundle": "~2.4",
|
||||
"symfony/http-foundation": "~2.3",
|
||||
"symfony/twig-bundle": "~2.2",
|
||||
"symfony/twig-bridge": "~2.2,>=2.2.6",
|
||||
|
@ -86,7 +86,7 @@ class YamlDumper extends Dumper
|
||||
foreach ($attributes as $key => $value) {
|
||||
$att[] = sprintf('%s: %s', $this->dumper->dump($key), $this->dumper->dump($value));
|
||||
}
|
||||
$att = $att ? ', '.implode(' ', $att) : '';
|
||||
$att = $att ? ', '.implode(', ', $att) : '';
|
||||
|
||||
$tagsCode .= sprintf(" - { name: %s%s }\n", $this->dumper->dump($name), $att);
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ $container = new ContainerBuilder();
|
||||
$container->
|
||||
register('foo', 'Bar\FooClass')->
|
||||
addTag('foo', array('foo' => 'foo'))->
|
||||
addTag('foo', array('bar' => 'bar'))->
|
||||
addTag('foo', array('bar' => 'bar', 'baz' => 'baz'))->
|
||||
setFactoryClass('Bar\\FooClass')->
|
||||
setFactoryMethod('getInstance')->
|
||||
setArguments(array('foo', new Reference('foo.baz'), array('%foo%' => 'foo is %foo%', 'foobar' => '%foo%'), true, new Reference('service_container')))->
|
||||
|
@ -8,7 +8,7 @@
|
||||
<services>
|
||||
<service id="foo" class="Bar\FooClass" factory-method="getInstance" factory-class="Bar\FooClass">
|
||||
<tag name="foo" foo="foo"/>
|
||||
<tag name="foo" bar="bar"/>
|
||||
<tag name="foo" bar="bar" baz="baz"/>
|
||||
<argument>foo</argument>
|
||||
<argument type="service" id="foo.baz"/>
|
||||
<argument type="collection">
|
||||
|
@ -8,7 +8,7 @@ services:
|
||||
class: Bar\FooClass
|
||||
tags:
|
||||
- { name: foo, foo: foo }
|
||||
- { name: foo, bar: bar }
|
||||
- { name: foo, bar: bar, baz: baz }
|
||||
factory_class: Bar\FooClass
|
||||
factory_method: getInstance
|
||||
arguments: [foo, '@foo.baz', { '%foo%': 'foo is %foo%', foobar: '%foo%' }, true, '@service_container']
|
||||
|
@ -268,7 +268,7 @@ class Response
|
||||
{
|
||||
$headers = $this->headers;
|
||||
|
||||
if ($this->isInformational() || in_array($this->statusCode, array(204, 304))) {
|
||||
if ($this->isInformational() || $this->isEmpty()) {
|
||||
$this->setContent(null);
|
||||
$headers->remove('Content-Type');
|
||||
$headers->remove('Content-Length');
|
||||
|
Reference in New Issue
Block a user