summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2015-11-09 18:09:08 +0000
committerNathaniel Catchpole2015-11-09 18:09:08 +0000
commit2159328f7eb2e2a65c4d78e931b6b0359ca68be7 (patch)
treed94b9f906fb9e72cc717b7ccb037034789a8fda5
parentc5255ad898f5b108c2b7f6729b134896732936b7 (diff)
Issue #2608126 by joshi.rohit100: Drop the unused function \Drupal\Core\DependencyInjection\ContainerBuilder::synchronize !
-rw-r--r--core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php27
1 files changed, 0 insertions, 27 deletions
diff --git a/core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php b/core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php
index e00426f..1edaec3 100644
--- a/core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php
+++ b/core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php
@@ -73,33 +73,6 @@ class ContainerBuilder extends SymfonyContainerBuilder {
}
/**
- * 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.
*/
protected function callMethod($service, $call) {