aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/di/service_collection.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2014-06-14 19:01:53 +0200
committerAndreas Fischer <bantu@phpbb.com>2014-06-14 19:01:53 +0200
commit04e2fcd4d8d4e7364b234c072b31f1560461a006 (patch)
tree22c426bb089da0dfca01e45abe12d2730244eba1 /phpBB/phpbb/di/service_collection.php
parent2149bd4e8f34092be8ef75cf59b9bd410d9a80d5 (diff)
downloadforums-04e2fcd4d8d4e7364b234c072b31f1560461a006.tar
forums-04e2fcd4d8d4e7364b234c072b31f1560461a006.tar.gz
forums-04e2fcd4d8d4e7364b234c072b31f1560461a006.tar.bz2
forums-04e2fcd4d8d4e7364b234c072b31f1560461a006.tar.xz
forums-04e2fcd4d8d4e7364b234c072b31f1560461a006.zip
[ticket/12575] Just forward service_collection::offsetGet() to container.
PHPBB3-12575
Diffstat (limited to 'phpBB/phpbb/di/service_collection.php')
-rw-r--r--phpBB/phpbb/di/service_collection.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/phpBB/phpbb/di/service_collection.php b/phpBB/phpbb/di/service_collection.php
index 4d0cb64114..82ca9bf679 100644
--- a/phpBB/phpbb/di/service_collection.php
+++ b/phpBB/phpbb/di/service_collection.php
@@ -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);
}
/**