From 8bfa2bc90b8908f3d6d2da793ec362ec46b77552 Mon Sep 17 00:00:00 2001 From: xrowkristina Date: Tue, 30 Jun 2015 17:11:34 +0200 Subject: [PATCH] removed loading client params --- Controller/GetRequiredParamsController.php | 36 ---------------------- Resources/config/routinggetparams.yml | 5 --- Resources/translations/messages.fr.xlf | 11 ------- 3 files changed, 52 deletions(-) delete mode 100644 Controller/GetRequiredParamsController.php delete mode 100644 Resources/config/routinggetparams.yml delete mode 100644 Resources/translations/messages.fr.xlf diff --git a/Controller/GetRequiredParamsController.php b/Controller/GetRequiredParamsController.php deleted file mode 100644 index f798dc6..0000000 --- a/Controller/GetRequiredParamsController.php +++ /dev/null @@ -1,36 +0,0 @@ -container = $container; - } - - /** - * - * @param Request $request - * @return \Symfony\Component\HttpFoundation\JsonResponse - */ - public function getClientParamsAction(Request $request) - { - $client_id = $this->container->getParameter('oauth_client_id'); - $client_secret = $this->container->getParameter('oauth_client_secret'); - $callbackFunctionIfTokenIsSet = ''; - if ($this->container->hasParameter('oauth_callback_function_if_token_is_set')) - $callbackFunctionIfTokenIsSet = $this->container->getParameter('oauth_callback_function_if_token_is_set'); - return new JsonResponse(array( - 'client_id' => $client_id, - 'client_secret' => $client_secret, - 'callbackFunctionIfTokenIsSet' => $callbackFunctionIfTokenIsSet)); - } -} \ No newline at end of file diff --git a/Resources/config/routinggetparams.yml b/Resources/config/routinggetparams.yml deleted file mode 100644 index 063b063..0000000 --- a/Resources/config/routinggetparams.yml +++ /dev/null @@ -1,5 +0,0 @@ -xrow_rest_get_client_params: - path: /client - defaults: - _controller: xrow_rest.controller.get_params:getClientParamsAction - methods: [GET] \ No newline at end of file diff --git a/Resources/translations/messages.fr.xlf b/Resources/translations/messages.fr.xlf deleted file mode 100644 index fd59e6c..0000000 --- a/Resources/translations/messages.fr.xlf +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - Symfony2 is great - J'aime Symfony2 - - - -