diff options
| author | Andreas Fischer <bantu@phpbb.com> | 2014-06-14 19:01:53 +0200 | 
|---|---|---|
| committer | Andreas Fischer <bantu@phpbb.com> | 2014-06-14 19:01:53 +0200 | 
| commit | 04e2fcd4d8d4e7364b234c072b31f1560461a006 (patch) | |
| tree | 22c426bb089da0dfca01e45abe12d2730244eba1 | |
| parent | 2149bd4e8f34092be8ef75cf59b9bd410d9a80d5 (diff) | |
| download | forums-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
| -rw-r--r-- | phpBB/phpbb/di/service_collection.php | 9 | 
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);  	}  	/**  | 
