$container->log($this,sprintf('Removed service "%s"; reason: depends on non-existent service "%s".',$key,$argument_id));
$container->log($this,sprintf('Removed service "%s"; reason: method call "%s" depends on non-existent service "%s".',$key,$call[0],(string)$argument));
$has_changed=TRUE;
$process_aliases=TRUE;
// Process the next definition.
continue3;
}
}
}
@@ -58,4 +70,26 @@ public function process(ContainerBuilder $container) {
}
}
/**
* Checks if a reference argument is to a missing service.
// Tests that existing decorated services work as expected during update.
$this->assertTrue(\Drupal::state()->get('new_dependency_test_update_8001.decorated_service'),'The new_dependency_test.another_service service is decorated');
@@ -70,6 +71,7 @@ public function testUpdateNewDependency() {