Definition

Definition

class Definition

Definition represents a service definition.

Methods

__construct(string|null $class = null, array $arguments = array())
$this setFactory(string|array $factory)

Sets a factory.

string|array getFactory()

Gets the factory.

$this setFactoryClass(string $factoryClass) deprecated

Sets the name of the class that acts as a factory using the factory method, which will be invoked statically.

string|null getFactory