Reference

class Reference

Reference represents a service reference.

Methods

__construct(string $id, int $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE)
string __toString()
int getInvalidBehavior()

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

Details

__construct(string $id, int $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE)

Parameters

string $id The service identifier
int $invalidBehavior The behavior when the service does not exist

See also

Container

string __toString()

Return Value

string The service identifier

int getInvalidBehavior()

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

Return Value

int
doc_Symfony
2016-10-28 06:28:46
Comments
Leave a Comment

Please login to continue.