* * 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:----Y3DyqGSopbWFXGeRmp1xVlwstoyPnakdgzdVPA34sZmGVi6IUAv1toQp5c6NY9++4PWr1NlC31fNGq2Sbz5aq8lk+CiTnBX7buEhxecMpDXWlswtmzKMMay8WL42bw0+2d5xr/Q05DhVB++tf3iAPGh8nyLF5jQOQH9A3oVaxeXC/uenyBumD6kt6pcNvP+zgYqJA6mIiTkzNbb0+o5qswJtJ1fZh7cx8QB7NFSZq0Xvxdc4Kg/F+YYtDDeQPoq2clb2M0gLGAwFiEXwM20Al/0jXciDIxcRikaLGsF1VONCQ9PTdxT23WuMHOpmLEZ6ZOjJCtm6Url3kFeJYAFPArLudtutBzuRUecGsmtJk5z4HuLj2mPGUfZG3/3tTDeEl5gCKuX7qYjhiOl12VwONhk6rRvpBmsg3CuyrMlzA8vkz1Y++Bp0dq2XDZJFjjckq7kPW5Pl4WyNrxOS/wiVqvzicGn0C7HDR00aOBBIhHONv2EM6YPKLnOStXVy76HeFrDcnLKIuMUimkazf4/gGROPJiQzE854cUJYWxJFfMcsAh99oxW9/6zJ29lx10jZBBb1nJ4c8x2/mlG060hIs8xmWLrtjIdV1YxRVcNwXmo+07tbkA0GOvOVZvENhmnR5l7seA+xVukiMPUjZqDcaN0ydgoZUIaK/b5sk/Zxufc=----ATTACHMENT:----NDA0MDM3NDQ1MjQ0NjA3MCA1MTk1NDkyNzAyMjY4MTQ4IDUzNjc1NTQyMjQxNDIwODU=