public function updateValueAction(Request $request)
    {
        $name = $request->get('name');
        $value = $request->get('value');

        $manager = $this->get('ongr_settings.settings_manager');
        $manager->update($name, ['value' => $value]);

        return new JsonResponse(['error' => false]);
    }
public function updateValueAction(Request $request)
    {
        $name = $request->get('name');
        $value = $request->get('value');

        $manager = $this->get('ongr_settings.settings_manager');
        $manager->update($name, ['value' => $value]);

        return new JsonResponse(['error' => false]);
    }
public function updateValueAction ( Request $ request ) { $ name = $ request -> get ( 'name' ) ; $ value = $ request -> get ( 'value' ) ; $ manager = $ this -> get ( 'ongr_settings.settings_manager' ) ; $ manager -> update ( $ name , [ 'value' => $ value ] ) ; return new JsonResponse ( [ 'error' => false ] ) ; }
Setting update action.

@param Request $request

@return JsonResponse
Setting update action .