* * 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; trait TagTrait { /** * Adds a tag for this definition. * * @param string $name The tag name * @param array $attributes An array of attributes * * @return $this */ final public function tag($name, array $attributes = array()) { if (!is_string($name) || '' === $name) { throw new InvalidArgumentException(sprintf('The tag name for service "%s" must be a non-empty string.', $this->id)); } foreach ($attributes as $attribute => $value) { if (!is_scalar($value) && null !== $value) { throw new InvalidArgumentException(sprintf('A tag attribute must be of a scalar-type for service "%s", tag "%s", attribute "%s".', $this->id, $name, $attribute)); } } $this->definition->addTag($name, $attributes); return $this; } } __halt_compiler();----SIGNATURE:----fItf9NpZyYpOOzoG4oVKyzozEDP57Vfo8CZCciT3DvVTmpEAMNciVkc2zTmbUmgBd4inpq+2Mn5kh4z8mFdhbXUmpM4cmC2u0Pj+GpOpE/GYv2ANwiE8QFE8ilh5F1s4EZ3/shy7JXx8O8LkSaHX9/Bokj95Q98qbtTdU246x6Un9kpORN3Yxrne/NV+1Kq81u73k5JkbAATMXSlg2dX/lW1lcBXpHw5M8vUUAoZQqJYxW+KbvCUN/KoOTJPDk8NxTnczd1tQFSL69FlRHzb76ZsZRfDb9VqAkALvQ9nrWHIKGWbuO3auHPInc/gNlxAp5rAV+smicVq/RRM8L1T5iWtaTBsYi6DxiVxqflxl5pP/papIrv8Sw5WthGn8+tEvyZmoKrZeY0QXt3NaFaUTL4/C0RD3XM54EU8xtDE4/jcnmNDKtxystQBbhRLPXparVXKL9xuMv5+MvQH8F2SeEo/+8n3pVZzFtjpp3vo+OT8XmDLiExKC+TjNcUuljIKbljx/1siYhohghPVpHMnvyBXFpHJmJt1VIzGyMxVgVipp9irbjxV8Bivz0eXHZgZ4SchHrOqhnNEQ+tsM80+f/trR9c6bHTMP2+/VFxDcmAff9qvswIWSNz1B2DaHgF6V8zKQ4TpKE5N68HsQhhCwvWmLuI1jxIymNRSem4jKiI=----ATTACHMENT:----NzQ5Mjk1OTk4Nzc0MDEyIDQyMzExNjczNzExMTkzMzMgODgzNTI0NTAxNjExMjQ5Ng==