* * 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:----Knto970lKD44G5SPhzvRdieXtB8VaOBdIBve8Jr0ERyoKXa1sjvFvgQ558Fl8XmhbzGdaNGKZQL02HbjXS+cM+1QAo5E7mCmkYKA771ez03Qe6hdsU37GlfsmPFvrgKjNRtiRV3t530RS3fZlaV4YYNtrGrLRa0GKiY2hV+ivgMznNex5d53w8hro1a9FHI/E2O5O12JoWdiBSTYe1TmQQ/V14M6xi/xvoDqsJql8k88FqrH3O35f9fBMh6+yaMHTfJOWWHcb93gyseX7qxOfaSKRpuR0UIqb0rlWdS/YBqyNzbB0ccwDwvK7rEGzy27rWqsUbSfm+qHY+9Dnhc+lEOIpYeyLVRtdlTT83oBWCxFCgACEv+qxLV/nK8YHOVvWtvWIBANh8YkPaiLWVOAeCHbSmleN9IGtosETQO5IOZCeobBMRwuQ8wLW6CSWnYPPPR9uavrvHqDJszZWclV9FcatJRp3Jacc/vkBCobHZyG2IpLRWQuwKBroWHi6nZwnMuks0XEKTekNq4AsN1qCy6G2hmESV7na3wBnvY+Sin13X+I7zGzxbBPB2iWliZQ1WkHhoA1KRLzEDqxSmL0tu3OSc3oupa6LEviIWRL4geYF3xbkCfCzKe1Qsxad8/9lk8WE4cUpuS4j+6RKDWBjMtaUJbugJHlJIa44TkMoOE=----ATTACHMENT:----MTk5MzI2MTQxOTM5MDE2MyAzMjM0NTIzNzIzODA5Nzc3IDMyMjAyNDQ0Njg4ODcwNzI=