class TypedReference extends Reference
Represents a PHP type-hinted service reference.
__construct(string $id, string $type, 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() deprecated | ||
canBeAutoregistered() deprecated |
string | $id | |
string | $type | The PHP type of the identified service |
int | $invalidBehavior |
string | The service identifier |
Returns the behavior to be used when the service does not exist.
int |
deprecated
deprecated
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/DependencyInjection/TypedReference.html