diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-07-24 13:43:50 +0200 |
---|---|---|
committer | Robin McCorkell <rmccorkell@owncloud.com> | 2015-08-13 13:31:54 +0100 |
commit | 6248dd19c5d0be0859ef441510052d155e853140 (patch) | |
tree | 960fe9b3952b362cca4674f0c6475dbbedfa89a9 /lib | |
parent | 30409c7419e78d5f736695f1d7bba94f97e42079 (diff) | |
download | nextcloud-server-6248dd19c5d0be0859ef441510052d155e853140.tar.gz nextcloud-server-6248dd19c5d0be0859ef441510052d155e853140.zip |
add test for factories
use ref for factory test
Ensure we construct SimpleContainer
Use single instance of DIContainer in routing tests
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/appframework/dependencyinjection/dicontainer.php | 1 | ||||
-rw-r--r-- | lib/private/server.php | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/appframework/dependencyinjection/dicontainer.php b/lib/private/appframework/dependencyinjection/dicontainer.php index d32bead1f05..a1472c93226 100644 --- a/lib/private/appframework/dependencyinjection/dicontainer.php +++ b/lib/private/appframework/dependencyinjection/dicontainer.php @@ -55,6 +55,7 @@ class DIContainer extends SimpleContainer implements IAppContainer { * @param string $appName the name of the app */ public function __construct($appName, $urlParams = array()){ + parent::__construct(); $this['AppName'] = $appName; $this['urlParams'] = $urlParams; diff --git a/lib/private/server.php b/lib/private/server.php index 452a9ff489e..14ddfae54b6 100644 --- a/lib/private/server.php +++ b/lib/private/server.php @@ -37,6 +37,7 @@ class Server extends SimpleContainer implements IServerContainer { * @param string $webRoot */ function __construct($webRoot) { + parent::__construct(); $this->webRoot = $webRoot; $this->registerService('ContactsManager', function ($c) { |