aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Controller/UserRestController.php
diff options
context:
space:
mode:
authorJérémy Benoist <j0k3r@users.noreply.github.com>2019-05-29 14:40:01 +0200
committerGitHub <noreply@github.com>2019-05-29 14:40:01 +0200
commitecd54aa57ee769121374954b5e6c810d1c1e1171 (patch)
tree297e753bf38491cdce4360372ce298ab8060f3b6 /src/Wallabag/ApiBundle/Controller/UserRestController.php
parente9579d6de9ea99522e5905e8bb827e858c8da1fc (diff)
parent52e8d93248c6f47ccb98abc973fcd230b29fee6c (diff)
downloadwallabag-ecd54aa57ee769121374954b5e6c810d1c1e1171.tar.gz
wallabag-ecd54aa57ee769121374954b5e6c810d1c1e1171.tar.zst
wallabag-ecd54aa57ee769121374954b5e6c810d1c1e1171.zip
Merge pull request #3986 from wallabag/fix/scrutinizer-issues
Fix some Scrutinizer issues
Diffstat (limited to 'src/Wallabag/ApiBundle/Controller/UserRestController.php')
-rw-r--r--src/Wallabag/ApiBundle/Controller/UserRestController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/UserRestController.php b/src/Wallabag/ApiBundle/Controller/UserRestController.php
index 3a4dafcd..1b10a076 100644
--- a/src/Wallabag/ApiBundle/Controller/UserRestController.php
+++ b/src/Wallabag/ApiBundle/Controller/UserRestController.php
@@ -45,7 +45,7 @@ class UserRestController extends WallabagRestController
45 */ 45 */
46 public function putUserAction(Request $request) 46 public function putUserAction(Request $request)
47 { 47 {
48 if (!$this->getParameter('fosuser_registration') || !$this->get('craue_config')->get('api_user_registration')) { 48 if (!$this->container->getParameter('fosuser_registration') || !$this->get('craue_config')->get('api_user_registration')) {
49 $json = $this->get('jms_serializer')->serialize(['error' => "Server doesn't allow registrations"], 'json'); 49 $json = $this->get('jms_serializer')->serialize(['error' => "Server doesn't allow registrations"], 'json');
50 50
51 return (new JsonResponse()) 51 return (new JsonResponse())