mirror of
https://github.com/friendica/friendica
synced 2025-01-03 14:42:18 +00:00
Refactor dependency for $_GET
This commit is contained in:
parent
c53a75bc38
commit
7587517499
1 changed files with 6 additions and 6 deletions
|
@ -37,7 +37,7 @@ use Friendica\Model\Log\ParsedLogIterator;
|
|||
use Friendica\Network;
|
||||
use Friendica\Util;
|
||||
|
||||
return (function(array $serverVars): array {
|
||||
return (function(array $getVars, array $serverVars): array {
|
||||
/**
|
||||
* @var string $basepath The base path of the Friendica installation without trailing slash
|
||||
*/
|
||||
|
@ -150,7 +150,7 @@ return (function(array $serverVars): array {
|
|||
* Creates the \Friendica\App\BaseURL
|
||||
*
|
||||
* Same as:
|
||||
* $baseURL = new \Friendica\App\BaseURL($configuration, $_SERVER);
|
||||
* $baseURL = new \Friendica\App\BaseURL($configuration, $);
|
||||
*/
|
||||
\Friendica\App\BaseURL::class => [
|
||||
'constructParams' => [
|
||||
|
@ -227,7 +227,7 @@ return (function(array $serverVars): array {
|
|||
\Friendica\App\Arguments::class => [
|
||||
'instanceOf' => \Friendica\App\Arguments::class,
|
||||
'call' => [
|
||||
['determine', [$serverVars, $_GET], Dice::CHAIN_CALL],
|
||||
['determine', [$serverVars, $getVars], Dice::CHAIN_CALL],
|
||||
],
|
||||
],
|
||||
\Friendica\Core\System::class => [
|
||||
|
@ -245,7 +245,7 @@ return (function(array $serverVars): array {
|
|||
],
|
||||
L10n::class => [
|
||||
'constructParams' => [
|
||||
$serverVars, $_GET
|
||||
$serverVars, $getVars
|
||||
],
|
||||
],
|
||||
IHandleSessions::class => [
|
||||
|
@ -307,8 +307,8 @@ return (function(array $serverVars): array {
|
|||
\Friendica\Module\Api\ApiResponse::class => [
|
||||
'constructParams' => [
|
||||
$serverVars,
|
||||
$_GET['callback'] ?? '',
|
||||
$getVars['callback'] ?? '',
|
||||
],
|
||||
],
|
||||
];
|
||||
})($_SERVER);
|
||||
})($_GET, $_SERVER);
|
||||
|
|
Loading…
Reference in a new issue