From f7eb0bb0a406d501630efd65e295f843b63494d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20D=C3=A9siles?= <1536672+jokesterfr@users.noreply.github.com> Date: Wed, 14 Aug 2024 12:02:07 +0200 Subject: [PATCH 1/2] feat: map to official new services --- src/Service/PsAccountsService.php | 63 +++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/src/Service/PsAccountsService.php b/src/Service/PsAccountsService.php index 7f7fea2..d54ea71 100644 --- a/src/Service/PsAccountsService.php +++ b/src/Service/PsAccountsService.php @@ -56,6 +56,14 @@ public function getToken() return 'eyJhbGciOiJSUzI1NiIsImtpZCI6IjFlOTczZWUwZTE2ZjdlZWY0ZjkyMWQ1MGRjNjFkNzBiMmVmZWZjMTkiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJodHRwczovL3NlY3VyZXRva2VuLmdvb2dsZS5jb20vcHJlc3Rhc2hvcC1yZWFkeS1wcm9kIiwiYXVkIjoicHJlc3Rhc2hvcC1yZWFkeS1wcm9kIiwiYXV0aF90aW1lIjoxNjc5MDY1NzE0LCJ1c2VyX2lkIjoiZjA3MTgxZjctMjM5OS00MDZkLTkyMjYtNGI2YzE0Y2Y2MDY4Iiwic3ViIjoiZjA3MTgxZjctMjM5OS00MDZkLTkyMjYtNGI2YzE0Y2Y2MDY4IiwiaWF0IjoxNjc5MDY1NzE0LCJleHAiOjE2NzkwNjkzMTQsImVtYWlsIjoiaHR0cGM4MTg4ODE2Mjc1NjVldW5ncm9raW8xQHNob3AucHJlc3Rhc2hvcC5jb20iLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiZmlyZWJhc2UiOnsiaWRlbnRpdGllcyI6eyJlbWFpbCI6WyJodHRwYzgxODg4MTYyNzU2NWV1bmdyb2tpbzFAc2hvcC5wcmVzdGFzaG9wLmNvbSJdfSwic2lnbl9pbl9wcm92aWRlciI6ImN1c3RvbSJ9fQ.mbv_nY6rmz_OpfN32CyvsTa-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_OpfN32CyvsTa-ahlUO9FD1cok24HrZHNGkR-ZD6OzXvHedcFtU0RpafAdDdTYcU3GW_kiN_lqNwrbA2uO8LAS-JdQT1E1BFkhengrxFt8Gh_lBm_yE4B6DngvAs-6SGctmNxOc-wfWA3AC_CXKpJviu1P08tz7nYRwAQw_6EH1XaDVl9Cva51cCWUTFzWZ5VHgBUA-GdAyEbLkL9M9rRk0hy-KERwW-2plV_Mu5tpfnFUYZx2ZWwn-_ODEFyindyKiimuwZ6FF5p0pfZxfbMA_EXUdCsUlg1DMlv8zari-50PkhsnkD_DQ-dbmgpiKuM3ZFnL6vCSVw'; + } + /** * @return string */ @@ -64,6 +72,15 @@ public function getUserUuid() return 'f07181f7-2399-406d-9226-4b6c14cf6068'; } + /** + * @deprecated + * @return string + */ + public function getUserUuidV4() + { + return 'f07181f7-2399-406d-9226-4b6c14cf6068'; + } + /** * @return bool */ @@ -103,4 +120,50 @@ public function getAccountsVueCdn() { return 'test.com'; } + + /** + * @return string + */ + public function getAccountsCdn() + { + return 'test.com'; + } + + /** + * @return string + */ + public function getAdminAjaxUrl() + { + return 'http://localhost:8080/admin-dev/index.php'; + } + + /** + * @return void + */ + public function autoReonboardOnV5() + { + } + + /** + * @return void + */ + public function enableLogin() + { + } + + /** + * @return null + */ + public function getEmployeeAccount() + { + return null; + } + + /** + * @return bool + */ + public function getLoginActivated() + { + return true; + } } From 0cf02412e566fc76b49d9293c1e2bdc66bfaf8ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20D=C3=A9siles?= <1536672+jokesterfr@users.noreply.github.com> Date: Wed, 14 Aug 2024 12:02:50 +0200 Subject: [PATCH 2/2] lint --- src/Service/PsAccountsService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Service/PsAccountsService.php b/src/Service/PsAccountsService.php index d54ea71..f0d8296 100644 --- a/src/Service/PsAccountsService.php +++ b/src/Service/PsAccountsService.php @@ -74,6 +74,7 @@ public function getUserUuid() /** * @deprecated + * * @return string */ public function getUserUuidV4() @@ -120,7 +121,7 @@ public function getAccountsVueCdn() { return 'test.com'; } - + /** * @return string */