I understand the official explanation about the $this: http://php.net/manual/en/language.oop5.basic.php
But if I try to understand what is the object reference in this case of symfony, I don't know who is it, for example:
Each time when you need to return the theme, use this:
public function indexAction()
{
return $this->render('foo/bar.html.twig', array());
}
Or when you generate a some form:
public function indexAction(Request $request)
{
// Create the form
$form = $this->createFormBuilder()
->add('name', TextType::class)
->add('email', EmailType::class)
->add('subject', TextType::class)
->add('message', TextareaType::class)
->add('send', SubmitType::class)
->getForm();
}
But who is exactly the object $this? and if working with other word or value that is not $this, only for try to understand better.