[ticket/12575] Just forward service_collection::offsetGet() to container.

PHPBB3-12575
This commit is contained in:
Andreas Fischer 2014-06-14 19:01:53 +02:00
parent 2149bd4e8f
commit 04e2fcd4d8

View file

@ -63,14 +63,7 @@ class service_collection extends \ArrayObject
*/ */
public function offsetGet($index) public function offsetGet($index)
{ {
$task = parent::offsetGet($index); return $this->container->get($index);
if ($task === null)
{
$task = $this->container->get($index);
$this->offsetSet($index, $task);
}
return $task;
} }
/** /**