File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -177,11 +177,8 @@ to and from the issue number and the ``Issue`` object::
177
177
178
178
class IssueToNumberTransformer implements DataTransformerInterface
179
179
{
180
- private $entityManager;
181
-
182
- public function __construct(EntityManagerInterface $entityManager)
180
+ public function __construct(private EntityManagerInterface $entityManager)
183
181
{
184
- $this->entityManager = $entityManager;
185
182
}
186
183
187
184
/**
Original file line number Diff line number Diff line change @@ -1342,6 +1342,17 @@ disable asynchronous delivery.
1342
1342
The :method: `Symfony\\ Component\\ Mailer\\ Transport\\ Smtp\\ SmtpTransport::stop `
1343
1343
method was made public in Symfony 6.1.
1344
1344
1345
+ You can also select the transport by adding an ``X-Bus-Transport `` header (which
1346
+ will be remove automatically from the final message)::
1347
+
1348
+ // Use the bus transport "app.another_bus":
1349
+ $email->getHeaders()->addTextHeader('X-Bus-Transport', 'app.another_bus');
1350
+ $mailer->send($email);
1351
+
1352
+ .. versionadded :: 6.2
1353
+
1354
+ The ``X-Bus-Transport `` header support was introduced in Symfony 6.2.
1355
+
1345
1356
Adding Tags and Metadata to Emails
1346
1357
----------------------------------
1347
1358
You can’t perform that action at this time.
0 commit comments