PHP Class Symfony\Component\DependencyInjection\ChildDefinition

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

Public Methods

Method 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 method

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

getArgument() public method

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

getChanges() public method

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

getParent() public method

Returns the Definition being decorated.
public getParent ( ) : string
return string

replaceArgument() public method

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
return self the current instance

setAutowired() public method

public setAutowired ( $autowired )

setClass() public method

public setClass ( $class )

setConfigurator() public method

public setConfigurator ( $callable )

setDecoratedService() public method

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

setDeprecated() public method

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

setFactory() public method

public setFactory ( $callable )

setFile() public method

public setFile ( $file )

setLazy() public method

public setLazy ( $boolean )

setPublic() public method

public setPublic ( $boolean )