summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-07-24 13:43:50 +0200
committerRobin McCorkell <rmccorkell@owncloud.com>2015-08-13 13:31:54 +0100
commit6248dd19c5d0be0859ef441510052d155e853140 (patch)
tree960fe9b3952b362cca4674f0c6475dbbedfa89a9 /lib
parent30409c7419e78d5f736695f1d7bba94f97e42079 (diff)
downloadnextcloud-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.php1
-rw-r--r--lib/private/server.php1
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) {