From 2159328f7eb2e2a65c4d78e931b6b0359ca68be7 Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org> Date: Mon, 9 Nov 2015 18:09:08 +0000 Subject: [PATCH] Issue #2608126 by joshi.rohit100: Drop the unused function \Drupal\Core\DependencyInjection\ContainerBuilder::synchronize ! --- .../DependencyInjection/ContainerBuilder.php | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php b/core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php index e00426fc4ba7..1edaec363103 100644 --- a/core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php +++ b/core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php @@ -72,33 +72,6 @@ public function setParameter($name, $value) { parent::setParameter($name, $value); } - /** - * Synchronizes a service change. - * - * This method is a copy of the ContainerBuilder of symfony. - * - * This method updates all services that depend on the given - * service by calling all methods referencing it. - * - * @param string $id A service id - */ - private function synchronize($id) { - foreach ($this->getDefinitions() as $definitionId => $definition) { - // only check initialized services - if (!$this->initialized($definitionId)) { - continue; - } - - foreach ($definition->getMethodCalls() as $call) { - foreach ($call[1] as $argument) { - if ($argument instanceof Reference && $id == (string) $argument) { - $this->callMethod($this->get($definitionId), $call); - } - } - } - } - } - /** * A 1to1 copy of parent::callMethod. */ -- GitLab