-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Aroucha Bros Pinto
authored and
Aroucha Bros Pinto
committed
Apr 30, 2020
1 parent
10d86c7
commit f5ed64c
Showing
2 changed files
with
3 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,17 +10,17 @@ | |
use Symfony\Component\Form\Extension\Core\Type\TextType; | ||
use Symfony\Component\Form\Extension\Core\Type\TextareaType; | ||
use Symfony\Component\HttpFoundation\Request; | ||
/*use Symfony\Component\Mailer\MailerInterface; | ||
use Symfony\Component\Mailer\MailerInterface; | ||
use Symfony\Bridge\Twig\Mime\TemplatedEmail; | ||
use Symfony\Component\Mime\Email; | ||
use Symfony\Component\Mime\Address;*/ | ||
use Symfony\Component\Mime\Address; | ||
|
||
class ContactController extends AbstractController | ||
{ | ||
/** | ||
* @Route("/contact", name="contact", options={"sitemap" = {"priority" = 0.7 }}) | ||
*/ | ||
public function index(Request $request /*, MailerInterface $mailer*/) | ||
public function index(Request $request , MailerInterface $mailer) | ||
{ | ||
$contact = new Contact(); | ||
|
||
|
@@ -50,7 +50,6 @@ public function index(Request $request /*, MailerInterface $mailer*/) | |
$entityManager->persist($contact); | ||
$entityManager->flush(); | ||
|
||
/* | ||
$email = (new TemplatedEmail()) | ||
->from(new Address('[email protected]', 'Site da Casalit - '.$contact->getName())) | ||
->to('[email protected]') | ||
|
@@ -65,7 +64,6 @@ public function index(Request $request /*, MailerInterface $mailer*/) | |
]); | ||
|
||
$mailer->send($email); | ||
*/ | ||
|
||
$this->addFlash( | ||
'notice', | ||
|