mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/12575] Just forward service_collection::offsetGet() to container.
PHPBB3-12575
This commit is contained in:
parent
2149bd4e8f
commit
04e2fcd4d8
1 changed files with 1 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue