Replace Core class names with FQCN

This commit is contained in:
Art4 2024-12-23 14:30:14 +00:00
parent 5edc36d6fc
commit ce5789690d

View file

@ -24,11 +24,6 @@
*/ */
use Dice\Dice; use Dice\Dice;
use Friendica\Core\L10n;
use Friendica\Core\Lock;
use Friendica\Core\Session\Capability\IHandleSessions;
use Friendica\Core\Session\Capability\IHandleUserSessions;
use Friendica\Core\Storage\Repository\StorageManager;
use Friendica\Database\Database; use Friendica\Database\Database;
use Friendica\Database\Definition\DbaDefinition; use Friendica\Database\Definition\DbaDefinition;
use Friendica\Database\Definition\ViewDefinition; use Friendica\Database\Definition\ViewDefinition;
@ -217,8 +212,8 @@ return (function(string $basepath, array $getVars, array $serverVars, array $coo
['createLocal', [], Dice::CHAIN_CALL], ['createLocal', [], Dice::CHAIN_CALL],
], ],
], ],
Lock\Capability\ICanLock::class => [ \Friendica\Core\Lock\Capability\ICanLock::class => [
'instanceOf' => Lock\Factory\Lock::class, 'instanceOf' => \Friendica\Core\Lock\Factory\Lock::class,
'call' => [ 'call' => [
['create', [], Dice::CHAIN_CALL], ['create', [], Dice::CHAIN_CALL],
], ],
@ -242,19 +237,19 @@ return (function(string $basepath, array $getVars, array $serverVars, array $coo
null null
], ],
], ],
L10n::class => [ \Friendica\Core\L10n::class => [
'constructParams' => [ 'constructParams' => [
$serverVars, $getVars $serverVars, $getVars
], ],
], ],
IHandleSessions::class => [ \Friendica\Core\Session\Capability\IHandleSessions::class => [
'instanceOf' => \Friendica\Core\Session\Factory\Session::class, 'instanceOf' => \Friendica\Core\Session\Factory\Session::class,
'call' => [ 'call' => [
['create', [$serverVars], Dice::CHAIN_CALL], ['create', [$serverVars], Dice::CHAIN_CALL],
['start', [], Dice::CHAIN_CALL], ['start', [], Dice::CHAIN_CALL],
], ],
], ],
IHandleUserSessions::class => [ \Friendica\Core\Session\Capability\IHandleUserSessions::class => [
'instanceOf' => \Friendica\Core\Session\Model\UserSession::class, 'instanceOf' => \Friendica\Core\Session\Model\UserSession::class,
], ],
Cookie::class => [ Cookie::class => [
@ -263,7 +258,7 @@ return (function(string $basepath, array $getVars, array $serverVars, array $coo
], ],
], ],
ICanWriteToStorage::class => [ ICanWriteToStorage::class => [
'instanceOf' => StorageManager::class, 'instanceOf' => \Friendica\Core\Storage\Repository\StorageManager::class,
'call' => [ 'call' => [
['getBackend', [], Dice::CHAIN_CALL], ['getBackend', [], Dice::CHAIN_CALL],
], ],