|
@@ -193,7 +193,7 @@ class Container implements ContainerInterface, \ArrayAccess
|
|
|
throw new \InvalidArgumentException(sprintf('A service id should be a string (%s given).', str_replace("\n", '', var_export($id, true))));
|
|
|
}
|
|
|
|
|
|
- if (method_exists($this, $method = 'get'.strtr($id, array('_' => '', '.' => '_')).'Service'))
|
|
|
+ if (method_exists($this, $method = 'get'.strtr($id, array('_' => '', '.' => '_')).'Service') && 'getService' !== $method)
|
|
|
{
|
|
|
return $this->$method();
|
|
|
}
|