* * 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:----CyV+mbQt65EdbKsH6tdN76LVAxyLopt9AowNyRiyCldpGBdlOm+EG6lNOShT2F9OQqfp+HrNEHIdB0e/z7a+s0DUxTGcG6ddZ2S9g7CP4KkK2td52IjQy5l/SEGzLflABbbpQz2cw7Lqoe26oE0mCPi3EMsKrHPo/HBzBsLPkaYnvewONdDc6l+YYKGyxZCz6tPnwpIcTQ82wuqYWpEQ+ChlTWOIuPw1oa/E93IMGjRp0Lfaalok8d6KPqzZ1tZtzxx75m9LWB5Y7DSmxaRphO3bnqAA+jLo8D4EkE+3AanXV4mXFM0AJN4vpz8HGtSAy8wJBklx4F8Y+0Meml83VoZOCb96plJVMUwqGx7Xk6gFmtrodOm0WSvqQoFgO8lSTsD8cxhNArFPDj7FSAU1oaM3PyG+hMOwjycrXB8YlnHKK1taUyFDAp7cV25fCe1aeyd5CMObKxIDEouT2qIuR7+fMLVvgvbiiHsotj/3B8cyVztZJsYSdRZXlZdlU/50pU6VunKGoyZyVSwEVYHv0vfQIy9snVvRP9fr2c/ZZDv/ziTiKbPVMk/rDSxKGub7c+/SLPbAxpcfDtoTq4jRyQO3rXxvh4EEept0IbOLfiDy4UBqrT75SB735mSGoOQ/N2VRszHwvCaHRalr9/YQLgA/x61m1bHf8NhgBF49PT4=----ATTACHMENT:----MTExMjkyNzMzODA1ODI0MyA5NDQ0NDA5NjYzMjQ1MjU0IDU5MjM5MDMzMjk4MDY5ODQ=