phpBB API Documentation
Class

phpbb\di\service_collection

class service_collection extends ArrayObject

Collection of services to be configured at container compile time.

Methods

__construct(ContainerInterface $container)

Constructor

getIterator()

{@inheritdoc}

offsetExists($index)

{@inheritdoc}

offsetGet($index)

{@inheritdoc}

null add(string $name)

Add a service to the collection

add_service_class(string $service_id, string $class)

Add a service's class to the collection

array get_service_classes()

Get services' classes

Details

at line 38
public __construct(ContainerInterface $container)

Constructor

Parameters

ContainerInterface $container Container object

at line 47
public getIterator()

{@inheritdoc}

at line 61
public offsetExists($index)

{@inheritdoc}

Parameters

$index

at line 70
public offsetGet($index)

{@inheritdoc}

Parameters

$index

at line 81
public null add(string $name)

Add a service to the collection

Parameters

string $name The service name

Return Value

null

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

at line 102
public array get_service_classes()

Get services' classes

Return Value

array