[DependencyInjection] changed exception class in __call()
This commit is contained in:
parent
b6d00a4e87
commit
bc29f81e8e
@ -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]));
|
||||
|
Reference in New Issue
Block a user