Documentation

Reference
in package

Reference represents a service reference.

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

$id  : mixed
$invalidBehavior  : mixed
__construct()  : mixed
__toString()  : string
getInvalidBehavior()  : int
Returns the behavior to be used when the service does not exist.

Properties

$invalidBehavior

private mixed $invalidBehavior

Methods

__construct()

public __construct(string $id[, int $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE ]) : mixed
Parameters
$id : string
$invalidBehavior : int = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE
Return values
mixed

__toString()

public __toString() : string
Return values
string

getInvalidBehavior()

Returns the behavior to be used when the service does not exist.

public getInvalidBehavior() : int
Return values
int

Search results