mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-07 01:06:48 +02:00
[ticket/12575] Just forward service_collection::offsetGet() to container.
PHPBB3-12575
This commit is contained in:
@@ -63,14 +63,7 @@ class service_collection extends \ArrayObject
|
||||
*/
|
||||
public function offsetGet($index)
|
||||
{
|
||||
$task = parent::offsetGet($index);
|
||||
if ($task === null)
|
||||
{
|
||||
$task = $this->container->get($index);
|
||||
$this->offsetSet($index, $task);
|
||||
}
|
||||
|
||||
return $task;
|
||||
return $this->container->get($index);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user