phpBB API Documentation
Class

phpbb\di\service_collection_iterator

class service_collection_iterator extends ArrayIterator

Iterator which loads the services when they are requested

Methods

__construct(service_collection $collection, int $flags)

Construct an ArrayIterator for service_collection

current()

{@inheritdoc}

Details

at line 33
public __construct(service_collection $collection, int $flags)

Construct an ArrayIterator for service_collection

Parameters

service_collection $collection The collection to iterate over
int $flags Flags to control the behaviour of the ArrayObject object.

See also

ArrayObject::setFlags()

at line 42
public current()

{@inheritdoc}