diff --git a/core/lib/Drupal/Core/DependencyInjection/Compiler/ProxyServicesPass.php b/core/lib/Drupal/Core/DependencyInjection/Compiler/ProxyServicesPass.php index 65f9a8c..daecd2e 100644 --- a/core/lib/Drupal/Core/DependencyInjection/Compiler/ProxyServicesPass.php +++ b/core/lib/Drupal/Core/DependencyInjection/Compiler/ProxyServicesPass.php @@ -38,6 +38,8 @@ public function process(ContainerBuilder $container) { ->setArguments([new Reference('service_container'), $new_service_id]); } else { + // @todo Replace this with an assertion once + // https://www.drupal.org/node/2408013 is in. throw new InvalidArgumentException(sprintf('Missing proxy class %s for service %s', $proxy_class, $service_id)); } }