Copied!

Represents a PHP type-hinted service reference.

Cloneable Instantiable
Methods
public __construct ( string $id , string $type , int $invalidBehavior = 1 Symfony\Component\DependencyInjection\ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, ? string $name = NULL )
 
  • 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
public Symfony\Component\DependencyInjection\Reference :: __toString () : string
public Symfony\Component\DependencyInjection\Reference :: getInvalidBehavior () : int
 

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

public getName () : ? string
public getType ()
Properties
private string $name
private string $type
© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration