* * 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 $requiringClass; /** * @param string $id The service identifier * @param string $type The PHP type of the identified service * @param string $requiringClass The class of the service that requires the referenced type * @param int $invalidBehavior The behavior when the service does not exist */ public function __construct($id, $type, $requiringClass = '', $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE) { parent::__construct($id, $invalidBehavior); $this->type = $type; $this->requiringClass = $requiringClass; } public function getType() { return $this->type; } public function getRequiringClass() { return $this->requiringClass; } public function canBeAutoregistered() { return $this->requiringClass && (false !== $i = strpos($this->type, '\\')) && 0 === strncasecmp($this->type, $this->requiringClass, 1 + $i); } } __halt_compiler();----SIGNATURE:----FSHU4vU4APPcDaS7QZpAe1DPNjuszS8yf4le4/eNc6gop2cC/wd5HpHfg5cEBD2UuhXb3loD4Boyvs/5s5HGmv8KACLjxZZHeauTXr23UrC3MXJe5PeKNZeVyGcHA78bYn4OaFHOKsRggQjT7nU+HKtlx8sSrykHudaZwNgmB7J+y98d1PRYXnOxzKM54QljhsMa4WxDYEJZg2G4S3hXtvq6uLbZPccXMbEsUz+nBkSh0kbgl/ASyNPpbhkCGslmTiMaAs76uDYf5IbNQApWCbTa4MwgcH2AZpGNJegnAONv/NbbCowP0yJ/4BXXE3o8CTMfv8fCZBIlh+nw2gp2CAdrif95tv+SKs2Ijr26Cs1c+jlYi8w7ipozvPGEs/mrH/CRsTk6S5o3hCS6CKSi6j6y5TvP8wwuMLi+irzrTbgEzeHPlbJWnMmTJynuluTZGJT1f4Kdhgs0l4ORWYufqKhM4ItXnBgjLRTF+L6RljSt02UfopjPmssndXKYTJ2G+RLkBXuFmPqu9w8BJmyNETF9Qz2+ClnVPM/NdFqhAWF6cQPAeLzWikGAPn32s9iDGY8tsBEnFbE3ta3Hu3tyCcGzZdjTK7dkH1TElt1OGB3ziadGaBnUIaoQ73ARCtkDKyqqM5BUdTUz8f1Aq91KchJgPBf6GX+0CofwZ1mI9Os=----ATTACHMENT:----NTkzNTM2NzY3Nzk2MDM1MSA1NTgzMzA5MTUzOTQ1NTY4IDExNDIyNjI2NTE2MTgwNTI=