From 20e127c854532361127628311c102bb2eced1423 Mon Sep 17 00:00:00 2001 From: Dasc3er Date: Mon, 22 Mar 2021 20:45:14 +0100 Subject: [PATCH] Spostamento in URL legacy per versione retro-compatibile --- app/Http/Controllers/LegacyController.php | 8 +++++--- config/modules.php | 8 ++++---- legacy | 2 +- .../views/auth/forgot-password.blade.php | 2 +- resources/views/auth/login.blade.php | 2 +- resources/views/auth/password-reset.blade.php | 2 +- .../views/components/inputs/editor.blade.php | 2 +- .../components/inputs/password.blade.php | 2 +- resources/views/components/widget.blade.php | 2 +- .../views/config/configuration.blade.php | 2 +- .../views/config/initialization.blade.php | 2 +- resources/views/layouts/base.blade.php | 20 +++++++++---------- routes/legacy.php | 4 +++- 13 files changed, 31 insertions(+), 27 deletions(-) diff --git a/app/Http/Controllers/LegacyController.php b/app/Http/Controllers/LegacyController.php index 081fb3c65..deaab78b3 100644 --- a/app/Http/Controllers/LegacyController.php +++ b/app/Http/Controllers/LegacyController.php @@ -11,9 +11,9 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; class LegacyController extends Controller { - public function index(Request $request) + public function index(Request $request, $path) { - $path = substr($request->getPathInfo(), 1); + //$path = substr($request->getPathInfo(), 1); // Gestione dell'output $output = self::simulate($path); @@ -27,7 +27,9 @@ class LegacyController extends Controller } // Correzione header per API elseif (self::isApiRequest($path)) { - $response = $response->header('Content-Type', 'application/json'); + $output = json_decode($output, true); + $response = $response->header('Content-Type', 'application/json') + ->setStatusCode($output['status']); } return $response; diff --git a/config/modules.php b/config/modules.php index 4e7f633ab..099d9b312 100644 --- a/config/modules.php +++ b/config/modules.php @@ -56,7 +56,7 @@ return [ 'PROVIDER_NAMESPACE', ], ], - 'gitkeep' => true, + 'gitkeep' => false, ], 'paths' => [ /* @@ -209,10 +209,10 @@ return [ */ 'composer' => [ - 'vendor' => 'nwidart', + 'vendor' => 'devcode-it', 'author' => [ - 'name' => 'Nicolas Widart', - 'email' => 'n.widart@gmail.com', + 'name' => 'DevCode s.r.l.', + 'email' => 'infot@devcode.it', ], ], diff --git a/legacy b/legacy index 767e211f4..9a3a78520 160000 --- a/legacy +++ b/legacy @@ -1 +1 @@ -Subproject commit 767e211f4c616315618e222b6d55338f92d247a5 +Subproject commit 9a3a78520b0a3be853c2c47908e060f7d608983f diff --git a/resources/views/auth/forgot-password.blade.php b/resources/views/auth/forgot-password.blade.php index fef805b90..6873b9dec 100644 --- a/resources/views/auth/forgot-password.blade.php +++ b/resources/views/auth/forgot-password.blade.php @@ -7,7 +7,7 @@
diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index e8a55a040..d5027a85b 100644 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -7,7 +7,7 @@