diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-22 11:18:16 +0100 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-22 11:18:16 +0100 |
commit | 13eed83a10cfb5e2fa67e1039e12f3ccdf91a57d (patch) | |
tree | 0bbb71dbb4ae6075fa4a61643eaa3373b6ea9fb5 /dependencyinjection | |
parent | e674fe47e6a44d693314af4149022d51597b42ab (diff) |
renamed utils into something more accurated
Diffstat (limited to 'dependencyinjection')
-rw-r--r-- | dependencyinjection/dicontainer.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/dependencyinjection/dicontainer.php b/dependencyinjection/dicontainer.php index 4027f5589..fd6f36dac 100644 --- a/dependencyinjection/dicontainer.php +++ b/dependencyinjection/dicontainer.php @@ -43,6 +43,9 @@ use OCA\News\Db\FeedMapper; use OCA\News\Db\ItemMapper; +require_once __DIR__ . '/../3rdparty/SimplePie/autoloader.php'; + + class DIContainer extends BaseContainer { @@ -90,7 +93,7 @@ class DIContainer extends BaseContainer { }); $this['FeedBl'] = $this->share(function($c){ - return new FeedBl($c['FeedMapper']); + return new FeedBl($c['FeedMapper'], $c['Utils']); }); $this['ItemBl'] = $this->share(function($c){ @@ -112,6 +115,16 @@ class DIContainer extends BaseContainer { $this['ItemMapper'] = $this->share(function($c){ return new ItemMapper($c['API']); }); + + + /** + * Utility + */ + $this['Utils'] = $this->share(function($c){ + return new Utils(); + }); + + } } |