fix: DockerSecretsResolver - don't normalize absolute paths like /var/www/html/...
Some checks failed
Deploy Application / deploy (push) Has been cancelled

This commit is contained in:
2025-11-24 21:28:25 +01:00
parent 4eb7134853
commit 77abc65cd7
1327 changed files with 91915 additions and 9909 deletions

View File

@@ -36,7 +36,7 @@ final readonly class TextField implements FormField
): self {
return new self(
metadata: new FieldMetadata($name, $label, $help),
attributes: new FieldAttributes(
attributes: FieldAttributes::create(
name: $name,
id: $name,
required: $required,
@@ -57,10 +57,21 @@ final readonly class TextField implements FormField
$attrArray['value'] = (string) $this->value;
}
$input = FormElement::create('input', $attrArray);
$wrapped = $this->wrapper->wrap($input, $this->metadata);
$input = FormElement::textInput($this->attributes->name(), $this->value !== null ? (string) $this->value : '')
->withId($this->attributes->id())
->withClass($this->attributes->class());
return $form->addElement($wrapped);
if ($this->attributes->required()) {
$input = $input->withRequired();
}
if ($this->attributes->placeholder() !== null) {
$input = $input->withAttribute('placeholder', $this->attributes->placeholder());
}
$wrapped = $this->wrapper->wrap((string) $input, $this->metadata);
return $form->addRawHtml($wrapped);
}
public function getName(): string