PHP Class Symfony\Component\DependencyInjection\ChildDefinition

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

Méthodes publiques

Méthode Description
__construct ( string $parent )
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 ) : self You should always use this method when overwriting existing arguments of the parent definition.
setAutowired ( $autowired )
setClass ( $class )
setConfigurator ( $callable )
setDecoratedService ( $id, $renamedId = null, $priority )
setDeprecated ( $boolean = true, $template = null )
setFactory ( $callable )
setFile ( $file )
setLazy ( $boolean )
setPublic ( $boolean )

Method Details

__construct() public méthode

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 ) : self
$index integer
$value mixed
Résultat self the current instance

setAutowired() public méthode

public setAutowired ( $autowired )

setClass() public méthode

public setClass ( $class )

setConfigurator() public méthode

public setConfigurator ( $callable )

setDecoratedService() public méthode

public setDecoratedService ( $id, $renamedId = null, $priority )

setDeprecated() public méthode

public setDeprecated ( $boolean = true, $template = null )

setFactory() public méthode

public setFactory ( $callable )

setFile() public méthode

public setFile ( $file )

setLazy() public méthode

public setLazy ( $boolean )

setPublic() public méthode

public setPublic ( $boolean )