* * 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:----WKTgmLtu5Yf75/xArMG460CXzNuJmitFSNLzZ8KLx30EAdRNlvl11eq1FTnrObz/TCJGHLSMTW5y/P0YuyrYh51bft5EEinrLPTpxAf3a7eVg5PlRHwYo7HhtQY0yp8IFJWZKbEDmu4Ga8Vt16J8/ZfHh0nubJltE/fpVA2r08oh3joVH1kFfVTcbhu80s5qNgOHiiNuU4in8WfbxeAgcrS8yyYKWZ9JDrDGVTXU4qCpCHPnjW7/Qzjy7eEW7/jQxsmyjFWtxfhjkUmAqsNr0KMBSFskLyrB/TGlQ7rPB3U/uZVQjtkJFzSCp7fPeQO3ptu+RV8y8KrWttuw/C2Xd/U6esuXdF0l10Iik4qelOJZvBcNEcVxf/NgaxqvK/JKqEhyF5QvGyuCisVGLiy7G2voT/1eJRbSPu4LLAimOBM9ZHT7fm/hVS9eX90Zdd2PyEuUWkWNvfiVUXd0mza0EjtqOipqXMtXaFo++8cMtFZcdeY8jWFTZeBC0bZDUy4nOfPaqq7gcMweet6BS4x+rWA0BgwAcGggylmEC3ZVbcidNbousJSuEMZ8QXlbDLfGR9GIAfBdT94IMwpcCgwchhAAM1wgfCkSIxMN8VqKLEv7K1DIifgQXSEO4hPQMgu6pM7UMchEkefk0/V23A8mz6yq+wcYBV+fnPZ4CXm0t3U=----ATTACHMENT:----MTk3MjY3Njg3OTgwMDI1OSA0Njc5NDU2NTczMjA4ODg3IDIwNzYyMjczMzU0NzE3MDE=