Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
Public Member Functions | |
__construct (string $name, callable|array|string $factory, array $parameters=[]) | |
__toString () | |
Definitions can be cast to string for debugging information. | |
getCallable () | |
getName () | |
Returns the name of the entry in the container. | |
getParameters () | |
replaceNestedDefinitions (callable $replacer) | |
Apply a callable that replaces the definitions nested in this definition. | |
setName (string $name) | |
Set the name of the entry in the container. | |
DI\Definition\FactoryDefinition::__construct | ( | string | $name, |
callable|array|string | $factory, | ||
array | $parameters = [] ) |
string | $name | Entry name |
callable | array | string | $factory | Callable that returns the value associated to the entry name. |
array | $parameters | Parameters to be passed to the callable |
DI\Definition\FactoryDefinition::__toString | ( | ) |
Definitions can be cast to string for debugging information.
Implements DI\Definition\Definition.
Reimplemented in DI\Definition\DecoratorDefinition.
DI\Definition\FactoryDefinition::getCallable | ( | ) |
callable|array|string | Callable that returns the value associated to the entry name. |
DI\Definition\FactoryDefinition::getName | ( | ) |
Returns the name of the entry in the container.
Implements DI\Definition\Definition.
DI\Definition\FactoryDefinition::getParameters | ( | ) |
array | Array containing the parameters to be passed to the callable, indexed by name. |
DI\Definition\FactoryDefinition::replaceNestedDefinitions | ( | callable | $replacer | ) |
Apply a callable that replaces the definitions nested in this definition.
Implements DI\Definition\Definition.
Reimplemented in DI\Definition\DecoratorDefinition.
DI\Definition\FactoryDefinition::setName | ( | string | $name | ) |
Set the name of the entry in the container.
Implements DI\Definition\Definition.