[DI] Allow setting any public non-initialized services

by @nicolas-grekas

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/24418/d314b1ff628295ef085f93463bfcc125fd65e6b3/cs.diff | patch -p0
diff -ru src/Symfony/Component/DependencyInjection/Container.php src/Symfony/Component/DependencyInjection/Container.php
--- src/Symfony/Component/DependencyInjection/Container.php	2017-11-26 14:40:29.367724030 +0000
+++ src/Symfony/Component/DependencyInjection/Container.php	2017-11-26 14:40:30.314703347 +0000
@@ -222,7 +222,7 @@
      */
     public function has($id)
     {
-        for ($i = 2;;) {
+        for ($i = 2; ;) {
             if (isset($this->privates[$id])) {
                 @trigger_error(sprintf('Checking for the existence of the "%s" private service is deprecated since Symfony 3.2 and won\'t be supported anymore in Symfony 4.0.', $id), E_USER_DEPRECATED);
             }
@@ -280,7 +280,7 @@
         // available services. Service IDs are case insensitive, however since
         // this method can be called thousands of times during a request, avoid
         // calling $this->normalizeId($id) unless necessary.
-        for ($i = 2;;) {
+        for ($i = 2; ;) {
             if (isset($this->privates[$id])) {
                 @trigger_error(sprintf('Requesting the "%s" private service is deprecated since Symfony 3.2 and won\'t be supported anymore in Symfony 4.0.', $id), E_USER_DEPRECATED);
             }

0
Common Typos

0
License Headers

0
Pull Request Contributor Headers

0
File Permissions