[DependencyInjection] tweaked an error message to ease debugging

This commit is contained in:
Fabien Potencier 2010-09-26 16:59:40 +02:00
parent aaba52d928
commit 35ee15d131
1 changed files with 1 additions and 1 deletions

View File

@ -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();