From 35ee15d13120046c5d96c80d6b48a658950d5a8c Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sun, 26 Sep 2010 16:59:40 +0200 Subject: [PATCH] [DependencyInjection] tweaked an error message to ease debugging --- src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php b/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php index 15d522ac53..ae24f3a7f2 100644 --- a/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php +++ b/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php @@ -86,7 +86,7 @@ EOF; $class = $this->dumpValue($definition->getClass()); if (0 === strpos($class, "'") && !preg_match('/^\'[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*(\\\{2}[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)*\'$/', $class)) { - throw new \InvalidArgumentException(sprintf('"%s" is not a valid class name.', $class)); + throw new \InvalidArgumentException(sprintf('"%s" is not a valid class name for the "%s" service.', $class, $id)); } $arguments = array();