Browse files

[DependencyInjection] Fix for issue introduced in 3ae826a

  • Loading branch information...
1 parent a290ec7 commit 1da9b3bfba385d97c9604566c3f04e53e8e1907e @stloyd stloyd committed Apr 14, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 Loader/YamlFileLoader.php
@@ -16,6 +16,7 @@
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Reference;
+use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\Yaml\Yaml;
@@ -205,12 +206,12 @@ private function parseDefinition($id, $service, $file)
if (isset($service['tags'])) {
if (!is_array($service['tags'])) {
- throw new \InvalidArgumentException(sprintf('Parameter "tags" must be an array for service "%s" in %s.', $id, $file));
+ throw new InvalidArgumentException(sprintf('Parameter "tags" must be an array for service "%s" in %s.', $id, $file));
foreach ($service['tags'] as $tag) {
if (!isset($tag['name'])) {
- throw new \InvalidArgumentException(sprintf('A "tags" entry is missing a "name" key for service "%s" in %s.', $id, $file));
+ throw new InvalidArgumentException(sprintf('A "tags" entry is missing a "name" key for service "%s" in %s.', $id, $file));
$name = $tag['name'];

0 comments on commit 1da9b3b

Please sign in to comment.