PHP Class Symfony\Component\DependencyInjection\DefinitionDecorator

Author: Johannes M. Schmitt ([email protected])
Inheritance: extends Definition
Afficher le fichier Open project: pmjones/php-framework-benchmarks Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string $parent ) Constructor.
getArgument ( integer $index ) : mixed Gets an argument to pass to the service constructor/factory method.
getChanges ( ) : array Returns all changes tracked for the Definition object.
getParent ( ) : string Returns the Definition being decorated.
replaceArgument ( integer $index, mixed $value ) : DefinitionDecorator You should always use this method when overwriting existing arguments of the parent definition.
setClass ( $class ) {@inheritDoc}
setConfigurator ( $callable ) {@inheritDoc}
setFactoryClass ( $class ) {@inheritDoc}
setFactoryMethod ( $method ) {@inheritDoc}
setFactoryService ( $service ) {@inheritDoc}
setFile ( $file ) {@inheritDoc}
setPublic ( $boolean ) {@inheritDoc}

Method Details

__construct() public méthode

Constructor.
public __construct ( string $parent )
$parent string The id of Definition instance to decorate.

getArgument() public méthode

If replaceArgument() has been used to replace an argument, this method will return the replacement value.
public getArgument ( integer $index ) : mixed
$index integer
Résultat mixed The argument value

getChanges() public méthode

Returns all changes tracked for the Definition object.
public getChanges ( ) : array
Résultat array An array of changes for this Definition

getParent() public méthode

Returns the Definition being decorated.
public getParent ( ) : string
Résultat string

replaceArgument() public méthode

If you directly call setArguments() keep in mind that you must follow certain conventions when you want to overwrite the arguments of the parent definition, otherwise your arguments will only be appended.
public replaceArgument ( integer $index, mixed $value ) : DefinitionDecorator
$index integer
$value mixed
Résultat DefinitionDecorator the current instance

setClass() public méthode

{@inheritDoc}
public setClass ( $class )

setConfigurator() public méthode

{@inheritDoc}
public setConfigurator ( $callable )

setFactoryClass() public méthode

{@inheritDoc}
public setFactoryClass ( $class )

setFactoryMethod() public méthode

{@inheritDoc}
public setFactoryMethod ( $method )

setFactoryService() public méthode

{@inheritDoc}
public setFactoryService ( $service )

setFile() public méthode

{@inheritDoc}
public setFile ( $file )

setPublic() public méthode

{@inheritDoc}
public setPublic ( $boolean )