mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02:00
Fix code style
This commit is contained in:
parent
dd4fbc0194
commit
0bd8118673
1 changed files with 24 additions and 24 deletions
|
@ -30,7 +30,7 @@ use Dice\Dice;
|
||||||
*/
|
*/
|
||||||
return (function(string $basepath, array $getVars, array $serverVars, array $cookieVars): array {
|
return (function(string $basepath, array $getVars, array $serverVars, array $cookieVars): array {
|
||||||
return [
|
return [
|
||||||
'*' => [
|
'*' => [
|
||||||
// marks all class result as shared for other creations, so there's just
|
// marks all class result as shared for other creations, so there's just
|
||||||
// one instance for the whole execution
|
// one instance for the whole execution
|
||||||
'shared' => true,
|
'shared' => true,
|
||||||
|
@ -42,13 +42,13 @@ return (function(string $basepath, array $getVars, array $serverVars, array $coo
|
||||||
[Dice::INSTANCE => Dice::SELF],
|
[Dice::INSTANCE => Dice::SELF],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
\Friendica\Util\BasePath::class => [
|
\Friendica\Util\BasePath::class => [
|
||||||
'constructParams' => [
|
'constructParams' => [
|
||||||
$basepath,
|
$basepath,
|
||||||
$serverVars,
|
$serverVars,
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
\Friendica\Core\Hooks\Model\DiceInstanceManager::class => [
|
\Friendica\Core\Hooks\Model\DiceInstanceManager::class => [
|
||||||
'constructParams' => [
|
'constructParams' => [
|
||||||
[Dice::INSTANCE => Dice::SELF],
|
[Dice::INSTANCE => Dice::SELF],
|
||||||
]
|
]
|
||||||
|
@ -70,7 +70,7 @@ return (function(string $basepath, array $getVars, array $serverVars, array $coo
|
||||||
\Friendica\AppHelper::class => [
|
\Friendica\AppHelper::class => [
|
||||||
'instanceOf' => \Friendica\AppLegacy::class,
|
'instanceOf' => \Friendica\AppLegacy::class,
|
||||||
],
|
],
|
||||||
\Friendica\Core\Hooks\Capability\ICanCreateInstances::class => [
|
\Friendica\Core\Hooks\Capability\ICanCreateInstances::class => [
|
||||||
'instanceOf' => \Friendica\Core\Hooks\Model\DiceInstanceManager::class,
|
'instanceOf' => \Friendica\Core\Hooks\Model\DiceInstanceManager::class,
|
||||||
'constructParams' => [
|
'constructParams' => [
|
||||||
[Dice::INSTANCE => Dice::SELF],
|
[Dice::INSTANCE => Dice::SELF],
|
||||||
|
@ -78,7 +78,7 @@ return (function(string $basepath, array $getVars, array $serverVars, array $coo
|
||||||
],
|
],
|
||||||
\Friendica\Core\Config\Util\ConfigFileManager::class => [
|
\Friendica\Core\Config\Util\ConfigFileManager::class => [
|
||||||
'instanceOf' => \Friendica\Core\Config\Factory\Config::class,
|
'instanceOf' => \Friendica\Core\Config\Factory\Config::class,
|
||||||
'call' => [
|
'call' => [
|
||||||
['createConfigFileManager', [
|
['createConfigFileManager', [
|
||||||
$basepath,
|
$basepath,
|
||||||
$serverVars,
|
$serverVars,
|
||||||
|
@ -87,11 +87,11 @@ return (function(string $basepath, array $getVars, array $serverVars, array $coo
|
||||||
],
|
],
|
||||||
\Friendica\Core\Config\ValueObject\Cache::class => [
|
\Friendica\Core\Config\ValueObject\Cache::class => [
|
||||||
'instanceOf' => \Friendica\Core\Config\Factory\Config::class,
|
'instanceOf' => \Friendica\Core\Config\Factory\Config::class,
|
||||||
'call' => [
|
'call' => [
|
||||||
['createCache', [], Dice::CHAIN_CALL],
|
['createCache', [], Dice::CHAIN_CALL],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
\Friendica\App\Mode::class => [
|
\Friendica\App\Mode::class => [
|
||||||
'call' => [
|
'call' => [
|
||||||
['determineRunMode', [true, $serverVars], Dice::CHAIN_CALL],
|
['determineRunMode', [true, $serverVars], Dice::CHAIN_CALL],
|
||||||
['determine', [
|
['determine', [
|
||||||
|
@ -107,7 +107,7 @@ return (function(string $basepath, array $getVars, array $serverVars, array $coo
|
||||||
],
|
],
|
||||||
\Friendica\Core\PConfig\Capability\IManagePersonalConfigValues::class => [
|
\Friendica\Core\PConfig\Capability\IManagePersonalConfigValues::class => [
|
||||||
'instanceOf' => \Friendica\Core\PConfig\Factory\PConfig::class,
|
'instanceOf' => \Friendica\Core\PConfig\Factory\PConfig::class,
|
||||||
'call' => [
|
'call' => [
|
||||||
['create', [], Dice::CHAIN_CALL],
|
['create', [], Dice::CHAIN_CALL],
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
@ -127,7 +127,7 @@ return (function(string $basepath, array $getVars, array $serverVars, array $coo
|
||||||
['load', [false], Dice::CHAIN_CALL],
|
['load', [false], Dice::CHAIN_CALL],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
\Friendica\Database\Database::class => [
|
\Friendica\Database\Database::class => [
|
||||||
'constructParams' => [
|
'constructParams' => [
|
||||||
[Dice::INSTANCE => \Friendica\Core\Config\Model\ReadOnlyFileConfig::class],
|
[Dice::INSTANCE => \Friendica\Core\Config\Model\ReadOnlyFileConfig::class],
|
||||||
],
|
],
|
||||||
|
@ -138,12 +138,12 @@ return (function(string $basepath, array $getVars, array $serverVars, array $coo
|
||||||
* Same as:
|
* Same as:
|
||||||
* $baseURL = new \Friendica\App\BaseURL($configuration, $);
|
* $baseURL = new \Friendica\App\BaseURL($configuration, $);
|
||||||
*/
|
*/
|
||||||
\Friendica\App\BaseURL::class => [
|
\Friendica\App\BaseURL::class => [
|
||||||
'constructParams' => [
|
'constructParams' => [
|
||||||
$serverVars,
|
$serverVars,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'$hostname' => [
|
'$hostname' => [
|
||||||
'instanceOf' => \Friendica\App\BaseURL::class,
|
'instanceOf' => \Friendica\App\BaseURL::class,
|
||||||
'constructParams' => [
|
'constructParams' => [
|
||||||
$serverVars,
|
$serverVars,
|
||||||
|
@ -162,51 +162,51 @@ return (function(string $basepath, array $getVars, array $serverVars, array $coo
|
||||||
$basepath,
|
$basepath,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
\Psr\Log\LoggerInterface::class => [
|
\Psr\Log\LoggerInterface::class => [
|
||||||
'instanceOf' => \Friendica\Core\Logger\Factory\Logger::class,
|
'instanceOf' => \Friendica\Core\Logger\Factory\Logger::class,
|
||||||
'call' => [
|
'call' => [
|
||||||
['create', [], Dice::CHAIN_CALL],
|
['create', [], Dice::CHAIN_CALL],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
\Friendica\Core\Logger\Type\SyslogLogger::class => [
|
\Friendica\Core\Logger\Type\SyslogLogger::class => [
|
||||||
'instanceOf' => \Friendica\Core\Logger\Factory\SyslogLogger::class,
|
'instanceOf' => \Friendica\Core\Logger\Factory\SyslogLogger::class,
|
||||||
'call' => [
|
'call' => [
|
||||||
['create', [], Dice::CHAIN_CALL],
|
['create', [], Dice::CHAIN_CALL],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
\Friendica\Core\Logger\Type\StreamLogger::class => [
|
\Friendica\Core\Logger\Type\StreamLogger::class => [
|
||||||
'instanceOf' => \Friendica\Core\Logger\Factory\StreamLogger::class,
|
'instanceOf' => \Friendica\Core\Logger\Factory\StreamLogger::class,
|
||||||
'call' => [
|
'call' => [
|
||||||
['create', [], Dice::CHAIN_CALL],
|
['create', [], Dice::CHAIN_CALL],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
\Friendica\Core\Logger\Capability\IHaveCallIntrospections::class => [
|
\Friendica\Core\Logger\Capability\IHaveCallIntrospections::class => [
|
||||||
'instanceOf' => \Friendica\Core\Logger\Util\Introspection::class,
|
'instanceOf' => \Friendica\Core\Logger\Util\Introspection::class,
|
||||||
'constructParams' => [
|
'constructParams' => [
|
||||||
\Friendica\Core\Logger\Capability\IHaveCallIntrospections::IGNORE_CLASS_LIST,
|
\Friendica\Core\Logger\Capability\IHaveCallIntrospections::IGNORE_CLASS_LIST,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'$devLogger' => [
|
'$devLogger' => [
|
||||||
'instanceOf' => \Friendica\Core\Logger\Factory\StreamLogger::class,
|
'instanceOf' => \Friendica\Core\Logger\Factory\StreamLogger::class,
|
||||||
'call' => [
|
'call' => [
|
||||||
['createDev', [], Dice::CHAIN_CALL],
|
['createDev', [], Dice::CHAIN_CALL],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
\Friendica\Core\Cache\Capability\ICanCache::class => [
|
\Friendica\Core\Cache\Capability\ICanCache::class => [
|
||||||
'instanceOf' => \Friendica\Core\Cache\Factory\Cache::class,
|
'instanceOf' => \Friendica\Core\Cache\Factory\Cache::class,
|
||||||
'call' => [
|
'call' => [
|
||||||
['createLocal', [], Dice::CHAIN_CALL],
|
['createLocal', [], Dice::CHAIN_CALL],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
\Friendica\Core\Cache\Capability\ICanCacheInMemory::class => [
|
\Friendica\Core\Cache\Capability\ICanCacheInMemory::class => [
|
||||||
'instanceOf' => \Friendica\Core\Cache\Factory\Cache::class,
|
'instanceOf' => \Friendica\Core\Cache\Factory\Cache::class,
|
||||||
'call' => [
|
'call' => [
|
||||||
['createLocal', [], Dice::CHAIN_CALL],
|
['createLocal', [], Dice::CHAIN_CALL],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
\Friendica\Core\Lock\Capability\ICanLock::class => [
|
\Friendica\Core\Lock\Capability\ICanLock::class => [
|
||||||
'instanceOf' => \Friendica\Core\Lock\Factory\Lock::class,
|
'instanceOf' => \Friendica\Core\Lock\Factory\Lock::class,
|
||||||
'call' => [
|
'call' => [
|
||||||
['create', [], Dice::CHAIN_CALL],
|
['create', [], Dice::CHAIN_CALL],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
@ -263,7 +263,7 @@ return (function(string $basepath, array $getVars, array $serverVars, array $coo
|
||||||
],
|
],
|
||||||
\Friendica\Network\HTTPClient\Capability\ICanSendHttpRequests::class => [
|
\Friendica\Network\HTTPClient\Capability\ICanSendHttpRequests::class => [
|
||||||
'instanceOf' => \Friendica\Network\HTTPClient\Factory\HttpClient::class,
|
'instanceOf' => \Friendica\Network\HTTPClient\Factory\HttpClient::class,
|
||||||
'call' => [
|
'call' => [
|
||||||
['createClient', [], Dice::CHAIN_CALL],
|
['createClient', [], Dice::CHAIN_CALL],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue