* * 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; use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException; /** * @author Nicolas Grekas
* * @method InstanceofConfigurator instanceof(string $fqcn) */ class DefaultsConfigurator extends AbstractServiceConfigurator { const FACTORY = 'defaults'; use Traits\AutoconfigureTrait; use Traits\AutowireTrait; use Traits\BindTrait; use Traits\PublicTrait; /** * Adds a tag for this definition. * * @param string $name The tag name * @param array $attributes An array of attributes * * @return $this * * @throws InvalidArgumentException when an invalid tag name or attribute is provided */ final public function tag($name, array $attributes = array()) { if (!is_string($name) || '' === $name) { throw new InvalidArgumentException('The tag name in "_defaults" must be a non-empty string.'); } foreach ($attributes as $attribute => $value) { if (!is_scalar($value) && null !== $value) { throw new InvalidArgumentException(sprintf('Tag "%s", attribute "%s" in "_defaults" must be of a scalar-type.', $name, $attribute)); } } $this->definition->addTag($name, $attributes); return $this; } /** * Defines an instanceof-conditional to be applied to following service definitions. * * @param string $fqcn * * @return InstanceofConfigurator */ final protected function setInstanceof($fqcn) { return $this->parent->instanceof($fqcn); } } __halt_compiler();----SIGNATURE:----lsrYjhZyE4WgGFixk6spmE1Wt6PDARKf4tGEqL3VkuqZ8ySG+2OipPNLCbU7gPd2ccY/gG3PsZHVFL0OqHzEt9gL80siiAUgJk4a5DhZWnLxSgvb5t4aGWPa6BmHebHt9hs01XTMSVVQji61Zd2ymd5urUkrIjkWqazL9SXbVIK27GSbk5HiEFuH/wroCAngWmun4/2ATX39HYIBYOinZo5GpoBnx6uc7Z90H9o9UAU4wgF8Zhak0audafwGbbOd4sSvYxgjfsGezAybR0P+PVosOzVIU3GO1tWdrqQsZP63kDsa/t2UvvnTTFWSmXK6IJQNDRi7R5MHelqNEEyEMsdG6bxduJ0aWEpgrs701Ee/wqUGkJ9cSNKAToCUVLZafguqqg+iUqFsK12GgyxhgvFJIGtW1tSYIcnO4VWP6X0eB+wVCHa8nceO8oscACaTYuw58wy9wbpw5TxrBzgSa9I218MLwOfSxz/CENjgHEcjMdqCzDJLsW4fG13ryEZp4MTS4P1DDd/KMFqLzQB0JSKEckuxxGGTpTt2JTDyprKNvJFIIxhkWwf/OqYAkeWj5D2kgvSJMiL+eAsAIxsND2v+Ye+3U1MLf/5k7TmHvAsUvGsi4b9FLaut7WBtVV/JyqkwQ0hriNnNqhsETf//GVkeJ0y/NcqAFZD4JjBvw5o=----ATTACHMENT:----MjY3MjE2NzIxMjM5NjA1NSA0ODIzNzE1ODc2NDE2Mjk2IDI1NDExNjg2MjgyOTI2Mzk=