AppBundle\Controller\BlogController::commentFormAction PHP Method

commentFormAction() public method

The "id" of the Post is passed in and then turned into a Post object automatically by the ParamConverter.
public commentFormAction ( Post $post ) : Response
$post AppBundle\Entity\Post
return Symfony\Component\HttpFoundation\Response
    public function commentFormAction(Post $post)
    {
        $form = $this->createForm('AppBundle\\Form\\CommentType');
        return $this->render('blog/_comment_form.html.twig', array('post' => $post, 'form' => $form->createView()));
    }