Implement Hook::callAll('storage_instance') call for addons and add a description for it.
- Remove implicit Dice usage - Add concrete instance creating - Adding Hook call for addon instance creating - Updating doc for Hook - Updating tests
This commit is contained in:
parent
5d8e6c33ef
commit
bfae6766bf
8 changed files with 155 additions and 62 deletions
|
|
@ -196,15 +196,7 @@ return [
|
|||
$_SERVER, $_COOKIE
|
||||
],
|
||||
],
|
||||
StorageManager::class => [
|
||||
'constructParams' => [
|
||||
[Dice::INSTANCE => Dice::SELF],
|
||||
]
|
||||
],
|
||||
IStorage::class => [
|
||||
// Don't share this class with other creations, because it's possible to switch the backend
|
||||
// and so we wouldn't be possible to update it
|
||||
'shared' => false,
|
||||
'instanceOf' => StorageManager::class,
|
||||
'call' => [
|
||||
['getBackend', [], Dice::CHAIN_CALL],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue