diff options
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/phpbb/di/service_collection/ordered_service_collection.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/phpBB/phpbb/di/service_collection/ordered_service_collection.php b/phpBB/phpbb/di/service_collection/ordered_service_collection.php index 01d0914ad4..f012abcd09 100644 --- a/phpBB/phpbb/di/service_collection/ordered_service_collection.php +++ b/phpBB/phpbb/di/service_collection/ordered_service_collection.php @@ -46,6 +46,19 @@ class ordered_service_collection extends service_collection /** * {@inheritdoc} */ + public function getIterator() + { + if (!$this->is_ordered) + { + $this->sort_services(); + } + + return new service_collection_iterator($this); + } + + /** + * {@inheritdoc} + */ public function offsetExists($index) { if (!$this->is_ordered) |