PHP 클래스 Symfony\Component\DependencyInjection\DefinitionDecorator

저자: Johannes M. Schmitt ([email protected])
상속: extends Definition
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 1 사용 예제들

공개 메소드들

메소드 설명
__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}

메소드 상세

__construct() 공개 메소드

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

getArgument() 공개 메소드

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

getChanges() 공개 메소드

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

getParent() 공개 메소드

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

replaceArgument() 공개 메소드

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
리턴 DefinitionDecorator the current instance

setClass() 공개 메소드

{@inheritDoc}
public setClass ( $class )

setConfigurator() 공개 메소드

{@inheritDoc}
public setConfigurator ( $callable )

setFactoryClass() 공개 메소드

{@inheritDoc}
public setFactoryClass ( $class )

setFactoryMethod() 공개 메소드

{@inheritDoc}
public setFactoryMethod ( $method )

setFactoryService() 공개 메소드

{@inheritDoc}
public setFactoryService ( $service )

setFile() 공개 메소드

{@inheritDoc}
public setFile ( $file )

setPublic() 공개 메소드

{@inheritDoc}
public setPublic ( $boolean )