function FormDataPart::configurePart
1 call to FormDataPart::configurePart()
- FormDataPart::preparePart in vendor/
symfony/ mime/ Part/ Multipart/ FormDataPart.php
File
-
vendor/
symfony/ mime/ Part/ Multipart/ FormDataPart.php, line 91
Class
- FormDataPart
- Implements RFC 7578.
Namespace
Symfony\Component\Mime\Part\MultipartCode
private function configurePart(string $name, TextPart $part) : TextPart {
static $r;
$r ??= new \ReflectionProperty(TextPart::class, 'encoding');
$part->setDisposition('form-data');
$part->setName($name);
// HTTP does not support \r\n in header values
$part->getHeaders()
->setMaxLineLength(\PHP_INT_MAX);
$r->setValue($part, '8bit');
return $part;
}