Symfony\Component\DependencyInjection\Reference::__construct PHP Method

__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
    public function __construct($id, $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, $strict = true)
    {
        $this->id = strtolower($id);
        $this->invalidBehavior = $invalidBehavior;
        $this->strict = $strict;
    }