Skip to content

Commit

Permalink
[Mime] Added getDispostion() to TextPart to get current content dispo…
Browse files Browse the repository at this point in the history
…sition.
  • Loading branch information
Cyb0rk authored and fabpot committed Apr 14, 2023
1 parent c375406 commit 09f0049
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Symfony/Component/Mime/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ CHANGELOG
---

* Support detection of related parts if `Content-Id` is used instead of the name
* Add `TextPart::getDispostion()`

6.2
---
Expand Down
8 changes: 8 additions & 0 deletions src/Symfony/Component/Mime/Part/TextPart.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ public function setDisposition(string $disposition): static
return $this;
}

/**
* @return ?string null or one of attachment, inline, or form-data
*/
public function getDisposition(): ?string
{
return $this->disposition;
}

/**
* Sets the name of the file (used by FormDataPart).
*
Expand Down

0 comments on commit 09f0049

Please sign in to comment.