<commit_before><?php

namespace AppBundle\Controller;

use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;

class AdminController extends Controller
{

    /**
     * @Route("/admstzef", name="homepage_admin")
     */
    public function indexAdminAction(Request $request)
    {



        // replace this example code with whatever you need
    $message = \Swift_Message::newInstance()
        ->setSubject('Hello Email')
        ->setFrom('<EMAIL>')
        ->setTo('<EMAIL>')
        ->setBody(
            $this->renderView(
                // app/Resources/views/Emails/registration.html.twig
                'Emails/registration.html.twig',
                array('name' => "Carlos")
            ),
            'text/html'
        )
        /*
         * If you also want to include a plaintext version of the message
        ->addPart(
            $this->renderView(
                'Emails/registration.txt.twig',
                array('name' => $name)
            ),
            'text/plain'
        )
        */
    ;
    $this->get('mailer')->send($message);
    //dump($message);







        return $this->render('admin/index.html.twig', array());
    }
}
<commit_msg>Ajustes de Mailer<commit_after><?php

namespace AppBundle\Controller;

use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;

class AdminController extends Controller
{

    /**
     * @Route("/admstzef", name="homepage_admin")
     */
    public function indexAdminAction(Request $request)
    {



        // replace this example code with whatever you need
    $message = \Swift_Message::newInstance()
        ->setSubject('Hello Email')
        ->setFrom('<EMAIL>')
        ->setTo('<EMAIL>')
        ->setBody(
            $this->renderView(
                // app/Resources/views/Emails/registration.html.twig
                'Emails/registration.html.twig',
                array('name' => "Carlos")
            ),
            'text/html'
        )
        /*
         * If you also want to include a plaintext version of the message
        ->addPart(
            $this->renderView(
                'Emails/registration.txt.twig',
                array('name' => $name)
            ),
            'text/plain'
        )
        */
    ;
    $this->get('mailer')->send($message);
    //dump($message);







        return $this->render('admin/index.html.twig', array());
    }
}

{'fraction_non_alphanumeric': 0.13503086419753085, 'fraction_numerical': 0.0, 'mean_word_length': 1.9432463110102156, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1551658', 'n_tokens_mistral': 752, 'n_tokens_neox': 709, 'n_words': 128}