anime-db / anime-db

Anime DB

Home Page:http://anime-db.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Insight] Method Request::createFromGlobals should not be used - in app/router.php, line 28

peter-gribanov opened this issue · comments

in app/router.php, line 28

Request::createFromGlobals() shouldn't be used outside of the front controller

}


// get request
$loader = require_once __DIR__.'/bootstrap.php.cache';
$request = Request::createFromGlobals();

// Check that the access to the application by the local computer or local network
// Comment this code to open access to the application from the internet
if ($request->server->get('HTTP_CLIENT_IP') ||
    $request->server->get('HTTP_X_FORWARDED_FOR') ||