src/Controller/FormController.php
public function imageAction(Request $request)
    {
        $response = $this->getCacheTimeKeeper()->getResponse();
        // response was not modified for this request
        if ($response->isNotModified($request)) {
            return $response;
        }

        return $this->render('AnimeDbAppBundle:Form:image.html.twig', [
            'form' => $this->createForm(new UploadImage())->createView(),
            'change' => (bool) $request->get('change', false),
        ], $response);
    }
public function imageAction(Request $request)
    {
        $response = $this->getCacheTimeKeeper()->getResponse();
        // response was not modified for this request
        if ($response->isNotModified($request)) {
            return $response;
        }

        return $this->render('AnimeDbAppBundle:Form:image.html.twig', [
            'form' => $this->createForm(new UploadImage())->createView(),
            'change' => (bool) $request->get('change', false),
        ], $response);
    }
public function imageAction ( Request $ request ) { $ response = $ this -> getCacheTimeKeeper ( ) -> getResponse ( ) ; // response was not modified for this request if ( $ response -> isNotModified ( $ request ) ) { return $ response ; } return $ this -> render ( 'AnimeDbAppBundle:Form:image.html.twig' , [ 'form' => $ this -> createForm ( new UploadImage ( ) ) -> createView ( ) , 'change' => ( bool ) $ request -> get ( 'change' , false ) , ] , $ response ) ; }
Form field image.

@param Request $request

@return Response
Form field image .