[DI] Reference tagged services in config

by @ro0NL

Some issues have been detected in this pull request

Issues that can be fixed by applying a patch

Review the proposed patch then download it to apply it manually or execute the following command from the repository root directory:

curl https://fabbot.io/patch/symfony/symfony/22200/979e58f37051ffa0f1d22915c90e52c9d8d7bfe5/cs.diff | patch -p0
diff -ru src/Symfony/Component/DependencyInjection/Tests/Fixtures/config/php7.php src/Symfony/Component/DependencyInjection/Tests/Fixtures/config/php7.php
--- src/Symfony/Component/DependencyInjection/Tests/Fixtures/config/php7.php	2017-10-04 10:56:42.570942896 +0000
+++ src/Symfony/Component/DependencyInjection/Tests/Fixtures/config/php7.php	2017-10-04 10:56:46.958846446 +0000
@@ -5,15 +5,11 @@
 use Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Foo;
 
 return function (ContainerConfigurator $c) {
-    $c->parameters()
-        ('foo', 'Foo')
-        ('bar', 'Bar')
+    $c->parameters()('foo', 'Foo')('bar', 'Bar')
     ;
-    $c->services()
-        (Foo::class)
+    $c->services()(Foo::class)
             ->arg('$bar', ref('bar'))
-            ->public()
-        ('bar', Foo::class)
+            ->public()('bar', Foo::class)
             ->call('setFoo')
     ;
 };
diff -ru src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9.php src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9.php
--- src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9.php	2017-10-04 10:56:43.242928125 +0000
+++ src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9.php	2017-10-04 10:56:47.742829214 +0000
@@ -311,7 +311,7 @@
         if ($this->has('foobaz')) {
             $instance->setBar(${($_ = isset($this->services['foobaz']) ? $this->services['foobaz'] : $this->get('foobaz', ContainerInterface::NULL_ON_INVALID_REFERENCE)) && false ?: '_'});
         }
-        $instance->setBar((${($_ = isset($this->services['foo']) ? $this->services['foo'] : $this->getFooService()) && false ?: '_'}->foo() . (($this->hasParameter("foo")) ? ($this->getParameter("foo")) : ("default"))));
+        $instance->setBar((${($_ = isset($this->services['foo']) ? $this->services['foo'] : $this->getFooService()) && false ?: '_'}->foo().(($this->hasParameter('foo')) ? ($this->getParameter('foo')) : ('default'))));
 
         return $instance;
     }
diff -ru src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_compiled.php src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_compiled.php
--- src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_compiled.php	2017-10-04 10:56:43.494922586 +0000
+++ src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_compiled.php	2017-10-04 10:56:47.422836247 +0000
@@ -309,8 +309,8 @@
         $this->services['method_call1'] = $instance = new \Bar\FooClass();
 
         $instance->setBar(${($_ = isset($this->services['foo']) ? $this->services['foo'] : $this->getFooService()) && false ?: '_'});
-        $instance->setBar(NULL);
-        $instance->setBar((${($_ = isset($this->services['foo']) ? $this->services['foo'] : $this->getFooService()) && false ?: '_'}->foo() . (($this->hasParameter("foo")) ? ($this->getParameter("foo")) : ("default"))));
+        $instance->setBar(null);
+        $instance->setBar((${($_ = isset($this->services['foo']) ? $this->services['foo'] : $this->getFooService()) && false ?: '_'}->foo().(($this->hasParameter('foo')) ? ($this->getParameter('foo')) : ('default'))));
 
         return $instance;
     }

0
Common Typos

0
License Headers

0
Pull Request Contributor Headers

0
YAML Files Syntax

0
File Permissions