Reference (Component\DependencyInjection)

Symfony\Component\DependencyInjection\Reference

class Reference

Reference represents a service reference.

Methods

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

Constructor.

string __toString()

__toString.

int getInvalidBehavior()

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

Details

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

Constructor.

Parameters

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

See also

Container

public string __toString()

__toString.

Return Value

string The service identifier

public int getInvalidBehavior()

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

Return Value

int

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/DependencyInjection/Reference.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部