From 78c0566028d1ffafac0cdfb385ad42b6243c9ac3 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Wed, 1 Jul 2020 08:08:49 +0300 Subject: [PATCH] Removed globals from shared controllers --- app/controllers/shared/api.php | 2 -- app/controllers/web/console.php | 2 -- app/controllers/web/home.php | 2 -- 3 files changed, 6 deletions(-) diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index 38c40498c2..2a026cedf1 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -5,8 +5,6 @@ use Utopia\Exception; use Utopia\Abuse\Abuse; use Utopia\Abuse\Adapters\TimeLimit; -global $utopia, $request, $response, $register, $user, $project; - App::init(function ($utopia, $request, $response, $register, $user, $project) { $route = $utopia->match($request); diff --git a/app/controllers/web/console.php b/app/controllers/web/console.php index fb64331c32..90c178b52d 100644 --- a/app/controllers/web/console.php +++ b/app/controllers/web/console.php @@ -1,7 +1,5 @@