summaryrefslogtreecommitdiffstats
path: root/lib/private/appframework/dependencyinjection
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-07-24 13:43:50 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2015-07-25 01:59:30 +0200
commitd8673dabe37f72c4925d945ac1e225efa91440b9 (patch)
treee1c628edfafcb2595fb7174191e216af8e484de0 /lib/private/appframework/dependencyinjection
parent1f8ee61006a7b3dcc740cb16e5d826fa7c1646c6 (diff)
downloadnextcloud-server-d8673dabe37f72c4925d945ac1e225efa91440b9.tar.gz
nextcloud-server-d8673dabe37f72c4925d945ac1e225efa91440b9.zip
add test for factories
use ref for factory test use a factory for registerAlias Ensure we construct SimpleContainer Use single instance of DIContainer in routing tests
Diffstat (limited to 'lib/private/appframework/dependencyinjection')
-rw-r--r--lib/private/appframework/dependencyinjection/dicontainer.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/appframework/dependencyinjection/dicontainer.php b/lib/private/appframework/dependencyinjection/dicontainer.php
index c7ce6545972..e38077e838f 100644
--- a/lib/private/appframework/dependencyinjection/dicontainer.php
+++ b/lib/private/appframework/dependencyinjection/dicontainer.php
@@ -57,6 +57,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;