Security update for Core, with self-updated composer
[yaffs-website] / web / core / lib / Drupal / Component / DependencyInjection / PhpArrayContainer.php
index 83d558cbd34054c6abc449ccf23472d5e21de0b4..5d615dbd05e4c9592c0774e7d858abf6fae12d3d 100644 (file)
@@ -136,12 +136,8 @@ class PhpArrayContainer extends Container {
       }
     }
 
-    // Share the service if it is public.
-    if (!isset($definition['public']) || $definition['public'] !== FALSE) {
-      // Forward compatibility fix for Symfony 2.8 update.
-      if (!isset($definition['shared']) || $definition['shared'] !== FALSE) {
-        $this->services[$id] = $service;
-      }
+    if (!isset($definition['shared']) || $definition['shared'] !== FALSE) {
+      $this->services[$id] = $service;
     }
 
     if (isset($definition['calls'])) {