aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/di/service_collection.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/di/service_collection.php')
-rw-r--r--phpBB/phpbb/di/service_collection.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/phpBB/phpbb/di/service_collection.php b/phpBB/phpbb/di/service_collection.php
index a8eeeab8bb..82ca9bf679 100644
--- a/phpBB/phpbb/di/service_collection.php
+++ b/phpBB/phpbb/di/service_collection.php
@@ -40,7 +40,7 @@ class service_collection extends \ArrayObject
*/
public function getIterator()
{
- return new service_collection_iterator($this->container, $this);
+ return new service_collection_iterator($this);
}
// Because of a PHP issue we have to redefine offsetExists
@@ -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);
}
/**