1
0
Fork 0
mirror of synced 2024-06-03 11:24:48 +12:00

Updated flow

This commit is contained in:
Eldad Fux 2020-07-01 08:45:47 +03:00
parent 78c0566028
commit 1542fb8c0f
2 changed files with 9 additions and 6 deletions

View file

@ -53,7 +53,6 @@ Config::setParam('domainVerification', false);
// )
// );
App::init(function ($utopia, $request, $response, $console, $project, $user, $locale, $webhooks, $audits, $usage, $clients) {
/** @var Utopia\Request $request */
/** @var Utopia\Response $response */
@ -452,8 +451,4 @@ include_once __DIR__ . '/controllers/shared/web.php';
foreach(Config::getParam('services', []) as $service) {
include_once $service['controller'];
}
$app = new App('Asia/Tel_Aviv');
$app->run(new Request(), new Response());
}

View file

@ -8,6 +8,10 @@
* Rick Cook, The Wizardry Compiled
*/
use Utopia\App;
use Utopia\Request;
use Utopia\Response;
error_reporting(0);
ini_set('display_errors', 0);
@ -17,3 +21,7 @@ error_reporting(E_ALL);
//trigger_error('hide errors in prod', E_USER_NOTICE);
include __DIR__ . '/../app/app.php';
$app = new App('Asia/Tel_Aviv');
$app->run(new Request(), new Response());