From bc29f81e8ec52d1c55172cadaf63ce97e30e6654 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 6 Apr 2010 16:18:25 +0200 Subject: [PATCH] [DependencyInjection] changed exception class in __call() --- src/Symfony/Components/DependencyInjection/Container.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Components/DependencyInjection/Container.php b/src/Symfony/Components/DependencyInjection/Container.php index d864f2d831..28f8e03a70 100644 --- a/src/Symfony/Components/DependencyInjection/Container.php +++ b/src/Symfony/Components/DependencyInjection/Container.php @@ -339,7 +339,7 @@ class Container implements ContainerInterface, \ArrayAccess { if (!preg_match('/^get(.+)Service$/', $method, $match)) { - throw new \RuntimeException(sprintf('Call to undefined method %s::%s.', get_class($this), $method)); + throw new \BadMethodCallException(sprintf('Call to undefined method %s::%s.', get_class($this), $method)); } return $this->getService(self::underscore($match[1]));