Bundle/BlogBundle/Controller/ArticleController.php
public function settingsAction(Request $request, Article $article)
    {
        $form = $this->createForm(ArticleSettingsType::class, $article);
        $form->handleRequest($request);

        $response = $this->getNotPersistedSettingsResponse(
            $form,
            $article,
            $request->query->get('novalidate', false)
        );

        return new JsonResponse($response);
    }
public function settingsAction(Request $request, Article $article)
    {
        $form = $this->createForm(ArticleSettingsType::class, $article);
        $form->handleRequest($request);

        $response = $this->getNotPersistedSettingsResponse(
            $form,
            $article,
            $request->query->get('novalidate', false)
        );

        return new JsonResponse($response);
    }
public function settingsAction ( Request $ request , Article $ article ) { $ form = $ this -> createForm ( ArticleSettingsType :: class , $ article ) ; $ form -> handleRequest ( $ request ) ; $ response = $ this -> getNotPersistedSettingsResponse ( $ form , $ article , $ request -> query -> get ( 'novalidate' , false ) ) ; return new JsonResponse ( $ response ) ; }
Display a form to edit Blog Article settings.

@param Request $request
@param Article $article

@Route("/{id}/settings", name="victoire_blog_article_settings")
@Method("GET")

@ParamConverter("article", class="VictoireBlogBundle:Article")

@throws \Victoire\Bundle\ViewReferenceBundle\Exception\ViewReferenceNotFoundException

@return JsonResponse
Display a form to edit Blog Article settings .