From c33223a0ebf79e4ff79d077ca98b2476809ed53a Mon Sep 17 00:00:00 2001 From: Art4 Date: Mon, 23 Dec 2024 14:31:41 +0000 Subject: [PATCH] Replace Database class names with FQCN --- static/dependencies.config.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/static/dependencies.config.php b/static/dependencies.config.php index 8e9b8e5c16..7a37d5e8bc 100644 --- a/static/dependencies.config.php +++ b/static/dependencies.config.php @@ -24,10 +24,6 @@ */ use Dice\Dice; -use Friendica\Database\Database; -use Friendica\Database\Definition\DbaDefinition; -use Friendica\Database\Definition\ViewDefinition; -use Friendica\Core\Storage\Capability\ICanWriteToStorage; use Friendica\Model\User\Cookie; use Friendica\Model\Log\ParsedLogIterator; use Friendica\Network; @@ -119,7 +115,7 @@ return (function(string $basepath, array $getVars, array $serverVars, array $coo ['create', [], Dice::CHAIN_CALL], ] ], - DbaDefinition::class => [ + \Friendica\Database\Definition\DbaDefinition::class => [ 'constructParams' => [ $basepath, ], @@ -127,7 +123,7 @@ return (function(string $basepath, array $getVars, array $serverVars, array $coo ['load', [false], Dice::CHAIN_CALL], ], ], - ViewDefinition::class => [ + \Friendica\Database\Definition\ViewDefinition::class => [ 'constructParams' => [ $basepath, ], @@ -135,7 +131,7 @@ return (function(string $basepath, array $getVars, array $serverVars, array $coo ['load', [false], Dice::CHAIN_CALL], ], ], - Database::class => [ + \Friendica\Database\Database::class => [ 'constructParams' => [ [Dice::INSTANCE => \Friendica\Core\Config\Model\ReadOnlyFileConfig::class], ], @@ -257,7 +253,7 @@ return (function(string $basepath, array $getVars, array $serverVars, array $coo $cookieVars, ], ], - ICanWriteToStorage::class => [ + \Friendica\Core\Storage\Capability\ICanWriteToStorage::class => [ 'instanceOf' => \Friendica\Core\Storage\Repository\StorageManager::class, 'call' => [ ['getBackend', [], Dice::CHAIN_CALL],