TypedReference
class TypedReference extends Reference
Represents a PHP type-hinted service reference.
Methods
| __construct(string $id, string $type, string $requiringClass = '', int $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE) | ||
| string | __toString() | from Reference | 
| int |  getInvalidBehavior()  Returns the behavior to be used when the service does not exist.  |  from Reference | 
| getType() | ||
| getRequiringClass() | ||
| canBeAutoregistered() | 
Details
__construct(string $id, string $type, string $requiringClass = '', int $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE)
Parameters
| string | $id | The service identifier | 
| string | $type | The PHP type of the identified service | 
| string | $requiringClass | The class of the service that requires the referenced type | 
| int | $invalidBehavior | The behavior when the service does not exist | 
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 | 
getType()
getRequiringClass()
canBeAutoregistered()
    © 2004–2017 Fabien Potencier
Licensed under the MIT License.
    http://api.symfony.com/3.4/Symfony/Component/DependencyInjection/TypedReference.html