* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection\Loader\Configurator\Traits; use Symfony\Component\DependencyInjection\ChildDefinition; use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException; /** * @method $this parent(string $parent) */ trait ParentTrait { /** * Sets the Definition to inherit from. * * @param string $parent * * @return $this * * @throws InvalidArgumentException when parent cannot be set */ final protected function setParent($parent) { if (!$this->allowParent) { throw new InvalidArgumentException(sprintf('A parent cannot be defined when either "_instanceof" or "_defaults" are also defined for service prototype "%s".', $this->id)); } if ($this->definition instanceof ChildDefinition) { $this->definition->setParent($parent); } elseif ($this->definition->isAutoconfigured()) { throw new InvalidArgumentException(sprintf('The service "%s" cannot have a "parent" and also have "autoconfigure". Try disabling autoconfiguration for the service.', $this->id)); } elseif ($this->definition->getBindings()) { throw new InvalidArgumentException(sprintf('The service "%s" cannot have a "parent" and also "bind" arguments.', $this->id)); } else { // cast Definition to ChildDefinition $definition = serialize($this->definition); $definition = substr_replace($definition, '53', 2, 2); $definition = substr_replace($definition, 'Child', 44, 0); $definition = unserialize($definition); $this->definition = $definition->setParent($parent); } return $this; } } __halt_compiler();----SIGNATURE:----NN6CkVralbVWa5OLLyeG5lQTI+kkTM60b0tcq4gsEGlcrJIwKdToyHiaIgmelCrWBBI+c0k1HJGAk2odXRGpNojzJZPqr+YXMbRGX1j9gIPg34E+fYlrVOPLf40gLBxTtiv7u3tS4J/zaANV4yKp06qpMI1jUWgqEVqcMAWn9kzW0O3C57/hyR7ECw44UwKsXSIQNEIx2j7QmTb66NK/sQ7PhT0nUCmLLX2u60Dkpu2E47rnVpVL1GlErL0GTOxrrdgbGy03usAdX3eMXoh9Au++5kOIcbwCb1nJH7MrHB/l7f4VAVP+3yxMW97hNWNYcbgHqbSH27olb+H0qrb7kkrLbfUk9/VSB6fOzxbsiXAx4juNi6uODeaRiMG5nnx0dorEqfxNOc3Smk+5CJn7GV2c6h8TxnAdnCqXnktratI/YR7AMRIuR8o4MJyV3Ei7GVUI5DRT2lC4klXvSnTOQgi5hjHI5ryo1A7uxNlFxrNrgfIPfVu56fpnC7VgiBzf4JaJf4NAKEUtVMB+gxjqMTRxng7sd4Hb7HclbJ2kpFq8bDZZ4LBKYa5Y+qD9eVoG0Z9y/lwu5iRK5cG/ZS6fKxoCGbSiB5aAnre22Kvlej30YuMbzoVQd6KypUo0vwFs8OUz5ssFcQ1lWvcLtl4zMh7Mgbd0NQw53bZ3RdlF7fY=----ATTACHMENT:----Mjk2MjkxODQ2NTEyMTg2MCA0Mjk4MTg2OTY1NTQ3ODQxIDM2MjUwMTQ0OTk3MjA2NDU=