mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
use registerService method instead of array access
This commit is contained in:
parent
9e36c33104
commit
d8020c3506
1 changed files with 1 additions and 1 deletions
|
|
@ -186,7 +186,7 @@ class Server extends SimpleContainer implements IServerContainer {
|
|||
}
|
||||
return $router;
|
||||
});
|
||||
$this['Db'] = $this->share(function($c){
|
||||
$this->registerService('Db', function($c){
|
||||
return new Db();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue