* * 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\Exception\InvalidArgumentException; use Symfony\Component\DependencyInjection\Reference; trait BindTrait { /** * Sets bindings. * * Bindings map $named or FQCN arguments to values that should be * injected in the matching parameters (of the constructor, of methods * called and of controller actions). * * @param string $nameOrFqcn A parameter name with its "$" prefix, or a FQCN * @param mixed $valueOrRef The value or reference to bind * * @return $this */ final public function bind($nameOrFqcn, $valueOrRef) { $valueOrRef = static::processValue($valueOrRef, true); if (isset($nameOrFqcn[0]) && '$' !== $nameOrFqcn[0] && !$valueOrRef instanceof Reference) { throw new InvalidArgumentException(sprintf('Invalid binding for service "%s": named arguments must start with a "$", and FQCN must map to references. Neither applies to binding "%s".', $this->id, $nameOrFqcn)); } $bindings = $this->definition->getBindings(); $bindings[$nameOrFqcn] = $valueOrRef; $this->definition->setBindings($bindings); return $this; } } __halt_compiler();----SIGNATURE:----FHi/G3sRimz0hlyafMjKWsM/wCKhasdaL1XwVjmlIy/m8rEimRGiN0/wsVzFwpghDYQi7OHJ+Rmx9fK5qTFftKhI2yLOnubrJ6nPvdyJtIPvg0N/B52BbBzLkgy8GldNtveaeAzlxSMto5tH+H9JIJi5588f3PtH1QG4MHuV6dV1Z/KLBBuVMnvnjIBCAOiYFrS/dBlo/momeNpgKCpdvCiMAytYK9pCk6toZlwuzN5KBx82iYO1F+mgw4QVNrQ4hcn595AhMFRxYGxdv3+De5YW8TQ8fcZ4ruw6Z1bvmbycAe0OfCYM77rkwOiyF5x016xXI4b3Rx31CjBwWlsaEZxBeCCl+B1a9K9D6dx8K4jYnaJeWEqWSW/QmFh1xS0usLkSWgtCTbbrspeW4qtm7sYeGbSnqR8HYoRcwdIhgZW+x0rr9hAJYUbT845+rIY/NKR0HJvSJZ+6p5V/Po5TjXHghP6PpuHBCyb4Qjyirp2wnl4jeWJL776va1omxw2WQhra9D8DnpiuutG/sup+RKNI7KdNn0fnrDZ+zWydK/P2LFs3beuFuWX0/LO06ywLpEIfyZ1HmdYqDDeKWDYaf5Lo4RWnepPMgFm6W+aQMsS4JjstU/4YG5OrEnyHaYsMOZ2Dtst5pdvEMTxxc9IRfMLFiCmHUdnmJTUrgd0QdUk=----ATTACHMENT:----NDM2NjE0NDc5MTA0MDA5NyAxMzEyMDAxMzQwNDg3ODcyIDQyNTM2NDcxNTUxOTI3MTc=