mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 02:05:19 +02:00
Move Cache to strategies
This commit is contained in:
parent
f1da323b07
commit
f2c02a79b9
12 changed files with 98 additions and 119 deletions
|
@ -178,6 +178,20 @@ return [
|
|||
$_SERVER,
|
||||
],
|
||||
],
|
||||
'$hostname' => [
|
||||
'instanceOf' => App\BaseURL::class,
|
||||
'constructParams' => [
|
||||
$_SERVER,
|
||||
],
|
||||
'call' => [
|
||||
['getHost', [], Dice::CHAIN_CALL],
|
||||
],
|
||||
],
|
||||
Cache\Type\AbstractCache::class => [
|
||||
'constructParams' => [
|
||||
[Dice::INSTANCE => '$hostname'],
|
||||
],
|
||||
],
|
||||
App\Page::class => [
|
||||
'constructParams' => [
|
||||
[Dice::INSTANCE => '$basepath'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue