| Name | Size | Mode | Actions |
|---|---|---|---|
| Traits/ | - | 0755 | rm |
| AbstractConfigurator.php | 3937 | 0644 | editdlrm |
| AbstractServiceConfigurator.php | 2992 | 0644 | editdlrm |
| AliasConfigurator.php | 726 | 0644 | editdlrm |
| ClosureReferenceConfigurator.php | 377 | 0644 | editdlrm |
| ContainerConfigurator.php | 6317 | 0644 | editdlrm |
| DefaultsConfigurator.php | 1968 | 0644 | editdlrm |
| EnvConfigurator.php | 3838 | 0644 | editdlrm |
| InlineServiceConfigurator.php | 1027 | 0644 | editdlrm |
| InstanceofConfigurator.php | 1242 | 0644 | editdlrm |
| ParametersConfigurator.php | 1099 | 0644 | editdlrm |
| PrototypeConfigurator.php | 2535 | 0644 | editdlrm |
| ReferenceConfigurator.php | 1444 | 0644 | editdlrm |
| ServiceConfigurator.php | 2044 | 0644 | editdlrm |
| ServicesConfigurator.php | 7067 | 0644 | editdlrm |
/usr/share/php/Symfony/Component/DependencyInjection/Loader/Configurator/DefaultsConfigurator.php (1968B)
*/ class DefaultsConfigurator extends AbstractServiceConfigurator { use Traits\AutoconfigureTrait; use Traits\AutowireTrait; use Traits\BindTrait; use Traits\PublicTrait; public const FACTORY = 'defaults'; private $path; public function __construct(ServicesConfigurator $parent, Definition $definition, string $path = null) { parent::__construct($parent, $definition, null, []); $this->path = $path; } /** * Adds a tag for this definition. * * @return $this * * @throws InvalidArgumentException when an invalid tag name or attribute is provided */ final public function tag(string $name, array $attributes = []): self { if ('' === $name) { throw new InvalidArgumentException('The tag name in "_defaults" must be a non-empty string.'); } foreach ($attributes as $attribute => $value) { if (null !== $value && !is_scalar($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. */ final public function instanceof(string $fqcn): InstanceofConfigurator { return $this->parent->instanceof($fqcn); } }