class DefinitionDecorator extends Definition
This definition decorates another definition.
Methods
|
__construct(string $parent)
Constructor. |
||
| string |
getParent()
Returns the Definition being decorated. |
|
| array |
getChanges()
Returns all changes tracked for the Definition object. |
|
| Definition |
setClass(string $class)
Sets the service class. |
|
| Definition |
setFactoryClass($class)
Sets the name of the class that acts as a factory using the factory method, which will be invoked statically. |
|
| Definition |
setFactoryMethod($method)
Sets the factory method able to create an instance of this class. |
|
| Definition |
setFactoryService($service)
Sets the name of the service that acts as a factory using the factory method. |
|
| Definition |
setConfigurator(callable $callable)
Sets a configurator to call after the service is fully initialized. |
|
| Definition |
setFile(string $file)
Sets a file to require before creating the service. |
|
| Definition |
setPublic(Boolean $boolean)
Sets the visibility of this service. |
|
| mixed |
getArgument(integer $index)
Gets an argument to pass to the service constructor/factory method. |
|
| DefinitionDecorator |
replaceArgument(integer $index, mixed $value)
Sets a specific argument |
Details
at line 36
public
__construct(string $parent)
Constructor.
at line 51
public string
getParent()
Returns the Definition being decorated.
at line 63
public array
getChanges()
Returns all changes tracked for the Definition object.
at line 73
public Definition
setClass(string $class)
Sets the service class.
at line 85
public Definition
setFactoryClass($class)
Sets the name of the class that acts as a factory using the factory method, which will be invoked statically.
at line 97
public Definition
setFactoryMethod($method)
Sets the factory method able to create an instance of this class.
at line 109
public Definition
setFactoryService($service)
Sets the name of the service that acts as a factory using the factory method.
at line 121
public Definition
setConfigurator(callable $callable)
Sets a configurator to call after the service is fully initialized.
at line 133
public Definition
setFile(string $file)
Sets a file to require before creating the service.
at line 145
public Definition
setPublic(Boolean $boolean)
Sets the visibility of this service.
at line 166
public mixed
getArgument(integer $index)
Gets an argument to pass to the service constructor/factory method.
at line 197
public DefinitionDecorator
replaceArgument(integer $index, mixed $value)
Sets a specific argument