Copied!

Represents a PHP type-hinted service reference.

CloneableInstantiable
Methods
public __construct(string $id, string $type, int $invalidBehavior = 1Symfony\Component\DependencyInjection\ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, ?string $name = NULL, array $attributes = [])
 
  • param string $id The service identifier
  • param string $type The PHP type of the identified service
  • param int $invalidBehavior The behavior when the service does not exist
  • param string|null $name The name of the argument targeting the service
  • param array $attributes The attributes to be used
public Symfony\Component\DependencyInjection\Reference::__toString() : string
public getAttributes() : array
public Symfony\Component\DependencyInjection\Reference::getInvalidBehavior() : int
 

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

public getName() : ?string
public getType()
 
  • return string
Properties
private array $attributes
private ?string $name
private string $type
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration