mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-09 10:16:36 +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)
|
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user