phpBB API Documentation
Class

phpbb\di\ordered_service_collection

class ordered_service_collection extends service_collection

Collection of services in a specified order

Methods

__construct(ContainerInterface $container)

Constructor

getIterator()

{@inheritdoc}

offsetExists($index)

{@inheritdoc}

offsetGet($index)

{@inheritdoc}

null add(string $service_id, int $order)

Adds a service ID to the collection

add_service_class(string $service_id, string $class)

Add a service's class to the collection

from service_collection
array get_service_classes()

Get services' classes

from service_collection

Details

at line 38
public __construct(ContainerInterface $container)

Constructor

Parameters

ContainerInterface $container Container object

at line 49
public getIterator()

{@inheritdoc}

at line 62
public offsetExists($index)

{@inheritdoc}

Parameters

$index

at line 75
public offsetGet($index)

{@inheritdoc}

Parameters

$index

at line 91
public null add(string $service_id, int $order)

Adds a service ID to the collection

Parameters

string $service_id
int $order

Return Value

null

in service_collection at line 92
public add_service_class(string $service_id, string $class)

Add a service's class to the collection

Parameters

string $service_id
string $class

in service_collection at line 102
public array get_service_classes()

Get services' classes

Return Value

array