public function renewAppCallback(Request $request, ApiApplication $application)
    {
        $this->assertJsonRequestFormat($request);

        try {
            $this->getApiApplicationManipulator()
                ->setRedirectUri($application, $request->request->get("callback"));
        } catch (InvalidArgumentException $e) {
            return $this->app->json(['success' => false]);
        }

        return $this->app->json(['success' => true]);
    }
public function renewAppCallback(Request $request, ApiApplication $application)
    {
        $this->assertJsonRequestFormat($request);

        try {
            $this->getApiApplicationManipulator()
                ->setRedirectUri($application, $request->request->get("callback"));
        } catch (InvalidArgumentException $e) {
            return $this->app->json(['success' => false]);
        }

        return $this->app->json(['success' => true]);
    }
public function renewAppCallback ( Request $ request , ApiApplication $ application ) { $ this -> assertJsonRequestFormat ( $ request ) ; try { $ this -> getApiApplicationManipulator ( ) -> setRedirectUri ( $ application , $ request -> request -> get ( "callback" ) ) ; } catch ( InvalidArgumentException $ e ) { return $ this -> app -> json ( [ 'success' => false ] ) ; } return $ this -> app -> json ( [ 'success' => true ] ) ; }
Change application callback.

@param Request        $request
@param ApiApplication $application

@return JsonResponse
Change application callback .