Skip to content
Snippets Groups Projects
Commit 2159328f authored by catch's avatar catch
Browse files

Issue #2608126 by joshi.rohit100: Drop the unused function...

Issue #2608126 by joshi.rohit100: Drop the unused function \Drupal\Core\DependencyInjection\ContainerBuilder::synchronize !
parent c5255ad8
No related branches found
No related tags found
No related merge requests found
......@@ -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.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment