8000 minor #46065 [Mailer] README, missing import in example (pH-7) · symfony/symfony@0d3c0a7 · GitHub
[go: up one dir, main page]

Skip to content
10000

Commit 0d3c0a7

Browse files
committed
minor #46065 [Mailer] README, missing import in example (pH-7)
This PR was merged into the 4.4 branch. Discussion ---------- [Mailer] README, missing import in example Fix the README’s code example from having a missing PHP import. Indeed, the first example had `use Symfony\Component\Mime\Email; ` missing. Finally, I targeted `v4.4` because I believe this one should be fixed in all maintained versions. | Q | A | ------------- | --- | Branch? | 4.4 <!-- see below --> | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | N/A <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT | Doc PR | N/A <!-- required for new features --> <!-- Replace this notice by a short README for your feature/bugfix. This will help reviewers and should be a good start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too.) - Features and deprecations must be submitted against the latest branch. - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry - Never break backward compatibility (see https://symfony.com/bc). --> Commits ------- 3677d49 [Mailer] Missing import in first example
2 parents 2687623 + 3677d49 commit 0d3c0a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/Mailer/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ $ composer require symfony/mailer
1313
```php
1414
use Symfony\Component\Mailer\Transport;
1515
use Symfony\Component\Mailer\Mailer;
16+
use Symfony\Component\Mime\Email;
1617

1718
$transport = Transport::fromDsn('smtp://localhost');
1819
$mailer = new Mailer($transport);

0 commit comments

Comments
 (0)
0