We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fff957 commit faecb98Copy full SHA for faecb98
mailer.rst
@@ -163,6 +163,7 @@ and create an :class:`Symfony\\Component\\Mime\\Email` object::
163
namespace App\Controller;
164
165
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
166
+ use Symfony\Component\HttpFoundation\Response;
167
use Symfony\Component\Mailer\MailerInterface;
168
use Symfony\Component\Mime\Email;
169
@@ -171,7 +172,7 @@ and create an :class:`Symfony\\Component\\Mime\\Email` object::
171
172
/**
173
* @Route("/email")
174
*/
- public function sendEmail(MailerInterface $mailer)
175
+ public function sendEmail(MailerInterface $mailer): Response
176
{
177
$email = (new Email())
178
->from('[email protected]')
0 commit comments