interface Factory (View source)

A factory which is used for creating service instances.

Methods

object
create(string $service, array $params = array())

Creates a new service instance.

Details

object create(string $service, array $params = array())

Creates a new service instance.

Parameters

string $service

The class name of the service.

array $params

The constructor parameters.

Return Value

object

The created service instances.