PHP Class Symfony\Component\DependencyInjection\Reference

Author: Fabien Potencier ([email protected])
Exibir arquivo Open project: pmjones/php-framework-benchmarks Class Usage Examples

Public Methods

Method Description
__construct ( string $id, integer $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, boolean $strict = true ) Constructor.
__toString ( ) : string __toString.
getInvalidBehavior ( ) : integer Returns the behavior to be used when the service does not exist.
isStrict ( ) : boolean Returns true when this Reference is strict

Method Details

__construct() public method

Constructor.
See also: Container
public __construct ( string $id, integer $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, boolean $strict = true )
$id string The service identifier
$invalidBehavior integer The behavior when the service does not exist
$strict boolean Sets how this reference is validated

__toString() public method

__toString.
public __toString ( ) : string
return string The service identifier

getInvalidBehavior() public method

Returns the behavior to be used when the service does not exist.
public getInvalidBehavior ( ) : integer
return integer

isStrict() public method

Returns true when this Reference is strict
public isStrict ( ) : boolean
return boolean