1
1
Fork 0

Remove $_SERVER['PHP_SELF'] usage

This commit is contained in:
Philipp Holzer 2019-09-17 16:47:00 +02:00
commit b13dbb3dcb
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
9 changed files with 41 additions and 26 deletions

View file

@ -62,7 +62,7 @@ return [
],
App\Mode::class => [
'call' => [
['determineRunMode', [$_SERVER], Dice::CHAIN_CALL],
['determineRunMode', [true, $_SERVER], Dice::CHAIN_CALL],
['determine', [], Dice::CHAIN_CALL],
],
],
@ -114,12 +114,18 @@ return [
*/
LoggerInterface::class => [
'instanceOf' => Factory\LoggerFactory::class,
'constructParams' => [
'index',
],
'call' => [
['create', [], Dice::CHAIN_CALL],
['create', ['index'], Dice::CHAIN_CALL],
],
],
'$devLogger' => [
'instanceOf' => Factory\LoggerFactory::class,
'constructParams' => [
'dev',
],
'call' => [
['createDev', [], Dice::CHAIN_CALL],
]