summaryrefslogtreecommitdiffstats
path: root/dependencyinjection/dicontainer.php
diff options
context:
space:
mode:
Diffstat (limited to 'dependencyinjection/dicontainer.php')
-rw-r--r--dependencyinjection/dicontainer.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/dependencyinjection/dicontainer.php b/dependencyinjection/dicontainer.php
index 6dfc0308c..4d5a6420c 100644
--- a/dependencyinjection/dicontainer.php
+++ b/dependencyinjection/dicontainer.php
@@ -61,6 +61,11 @@ class DIContainer extends BaseContainer {
// tell parent container about the app name
parent::__construct('news');
+ /**
+ * Configuration values
+ */
+ $this['autoPurgeCount'] = 1000;
+
/**
* CONTROLLERS
@@ -101,8 +106,9 @@ class DIContainer extends BaseContainer {
});
$this['FeedBl'] = $this->share(function($c){
- return new FeedBl($c['FeedMapper'], $c['Fetcher'],
- $c['ItemMapper'], $c['API']);
+ return new FeedBl($c['FeedMapper'], $c['Fetcher'],
+ $c['ItemMapper'], $c['API'],
+ $c['autoPurgeCount']);
});
$this['ItemBl'] = $this->share(function($c){