* * 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:----PAMhDyjC5Pg7tXqXrjfa3w6nc4e6LsFzuRtDoPCt5ewFR6C3f/e4ntAf+/2PH9uoSiPrb/CVeBVPlhiWpd+kh+R5TzcSWFoXKWEYMVhT7LpolEitEIHsf5jaJjWnJF7qo1tXzGpR/IycVbjvotbnACSMB+lnKhpGe2EZWOR/dIDMlOJsqoo6OgZWNYylYdQjuibpULEj4IntInImQoDpeaKO+jqBy+vAm6nxh+HsAqgKvSs2uC9VFI4ChTxJEyNSZXW3Gfs7vdGozlu2Pb2JBR4PgOV4G210f5qtsKaFj757E+9zji1GkHVuQX9VzLLRpQkVAxVwf39s0vFqLHt0yLNlH7FMVBo7teulg5lpRGQYAOmdXeXnaF+yZk8I8KPU988+reg218Unn36mGPiUfIaWBawjHeo7Sn4Xh2dIzFj4Qr8RAeaQL9JOKU+EsuFUTJmjO48uzHHxIu2aoe/jkevmrjz09Jx1ircBsHnhR2AuqWsPyPEU+qQEPH7ZGxveZtQu8ZqEE+48Q1gaFl8Nhz68/RvPKHHTHFm7T/ibUCoUX1GYv5Nd3spbCGgArbt2pHJq0aay8SMMtWkA1HwGKvnSRJ2c0dB98GWflZ7omZW3kRHizy0wSLJ6GMR+Qgwv9W83xgHgSmlFohl5jALYucr1/ppRMKQ0LM8tBZpruTU=----ATTACHMENT:----Njg4ODkxOTg4MTAxNzMyNSA0NTg4NjI1MTU5NDQ4OTk0IDI1MDMzNjU0MTUwMjU5NjQ=