Reference

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