/usr/share/php/Symfony/Component/DependencyInjection
NameSizeModeActions
Argument/-0755rm
Attribute/-0755rm
Compiler/-0755rm
Config/-0755rm
Dumper/-0755rm
Exception/-0755rm
Extension/-0755rm
LazyProxy/-0755rm
Loader/-0755rm
ParameterBag/-0755rm
Alias.php46280644editdlrm
autoload.php247680644editdlrm
ChildDefinition.php27270644editdlrm
Container.php138780644editdlrm
ContainerAwareInterface.php5900644editdlrm
ContainerAwareTrait.php5990644editdlrm
ContainerBuilder.php576430644editdlrm
ContainerInterface.php25140644editdlrm
Definition.php225140644editdlrm
EnvVarLoaderInterface.php6370644editdlrm
EnvVarProcessor.php106490644editdlrm
EnvVarProcessorInterface.php11620644editdlrm
ExpressionLanguage.php10790644editdlrm
ExpressionLanguageProvider.php15020644editdlrm
Parameter.php6240644editdlrm
Reference.php9850644editdlrm
ReverseContainer.php26080644editdlrm
ServiceLocator.php52920644editdlrm
TaggedContainerInterface.php7090644editdlrm
TypedReference.php12660644editdlrm
Variable.php7150644editdlrm
Edit: /usr/share/php/Symfony/Component/DependencyInjection/TypedReference.php (1266B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection; /** * Represents a PHP type-hinted service reference. * * @author Nicolas Grekas */ class TypedReference extends Reference { private $type; private $name; /** * @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 function __construct(string $id, string $type, int $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, string $name = null) { $this->name = $type === $id ? $name : null; parent::__construct($id, $invalidBehavior); $this->type = $type; } public function getType() { return $this->type; } public function getName(): ?string { return $this->name; } }