Controller/EditModeController.php
public function jsonSaveAction(Request $request)
    {
        //@FIXME: This code need to be moved to ContentController somehow.
        $this->save($request);

        $response = new Response(json_encode(['status' => 'ok']));
        $response->headers->set("Content-Type", 'application/json');

        return $response;
    }
public function jsonSaveAction(Request $request)
    {
        //@FIXME: This code need to be moved to ContentController somehow.
        $this->save($request);

        $response = new Response(json_encode(['status' => 'ok']));
        $response->headers->set("Content-Type", 'application/json');

        return $response;
    }
public function jsonSaveAction ( Request $ request ) { //@FIXME: This code need to be moved to ContentController somehow. $ this -> save ( $ request ) ; $ response = new Response ( json_encode ( [ 'status' => 'ok' ] ) ) ; $ response -> headers -> set ( "Content-Type" , 'application/json' ) ; return $ response ; }
Save from Raptor

@param string $type
@param \Symfony\Component\HttpFoundation\Request $request

@return \Symfony\Component\HttpFoundation\Response
Save from Raptor