* * 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:----rjmNBr4iHZMerydeuSbNpfXVOISyemiFJKbHylGoZGYLeE78KrTP8aLV6z73NWMNCtmXiLecJ3joKbqyuiY54hY4WFZszblORBnXBztAK/zgI+R4cw9wWcZhQXJ9rhhf1Tso+EQZvFweh6gJBD1E2zhAAsq7NER7IAMEk8fWbDUuKagEKRDBhWBEQ6j98JQkVyTaFwMRX43Ofza3rxWNhv0BSLizGJt2cIg4mNzwTfZiV9T1+fqCN5BGUv8k5YtXdVCVDGtTTSHtA1PbzsbOdgexaFPHgwRh+D4jDqGCVWfQMyY9QkLWCJYcmvzkjo57NhcPa2A4b0Ry4ZHhRcO1BYfxSrI2DHWt4PpSkXzLQNdJymP5cB1ZP9w7OzIluI1EEZUBXOcFYkKjEmDqtGUykUceJiesUh+uaQG1CqgL9VhKzMTjGuaCItJzsV/SASA4Rlv3G8FDwkzvZ6CRq17SsvfMsnG25bb/lO6RUqufW11NcVDIWKA9Pc0VS+V8nDPvdzU2b38wih+R0KyTdbd/5nIj9HPUYXBYuam/5KjBTBhpLXEFSsCmVKSCIpNzLDmehwK2UoVWWnaQ6ypIrzCwOn3O+qyQvw1sxqbx4Uu5UJfrl30Jv7IXDvJNMs9ono6z/0aQhD4ttXv1+B4TjALHM2v7vEzQW8ASASS+0RVhs+o=----ATTACHMENT:----NTYxMzczMzMxMTE3MzE1NCAyNTg3MDQyODYyMzc0MTAyIDM4NzE2MDI3NDMxNDYwMzc=