generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Support for new Mailable syntax (#14)
* Add Mailables with new syntax for tests * Add Tests to cover new syntax * Add new methods to get raw headers * Refactor associateWith method in StoreMailables * Make public methods public (doesn't really matter here, but indicates which methods should be used in user land) * Document new methods in the README
- Loading branch information
1 parent
6d597d2
commit b9a5526
Showing
11 changed files
with
771 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Wnx\Sends; | ||
|
||
use Symfony\Component\Mime\Header\UnstructuredHeader; | ||
|
||
class Header extends UnstructuredHeader | ||
{ | ||
public function toArray(): array | ||
{ | ||
return [ | ||
$this->getName() => $this->getValue(), | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.