summaryrefslogtreecommitdiff
path: root/app/ServiceProvider/JobProvider.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-07-23 20:30:06 -0400
committerFrederic Guillot <fred@kanboard.net>2016-07-23 20:30:06 -0400
commitadb5023cfc075ce5d6f73a4ba5b4ab51f6c500c0 (patch)
tree4333191b7f866ea5f5864df9173e61aa7e0d58b5 /app/ServiceProvider/JobProvider.php
parent8e6e335c9d99ff710ecd70dff293f15a25bf9a98 (diff)
Add unit test for ProjectMetricJob
Diffstat (limited to 'app/ServiceProvider/JobProvider.php')
-rw-r--r--app/ServiceProvider/JobProvider.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/ServiceProvider/JobProvider.php b/app/ServiceProvider/JobProvider.php
index 5b42794b..2194b11c 100644
--- a/app/ServiceProvider/JobProvider.php
+++ b/app/ServiceProvider/JobProvider.php
@@ -5,6 +5,7 @@ namespace Kanboard\ServiceProvider;
use Kanboard\Job\CommentEventJob;
use Kanboard\Job\NotificationJob;
use Kanboard\Job\ProjectFileEventJob;
+use Kanboard\Job\ProjectMetricJob;
use Kanboard\Job\SubtaskEventJob;
use Kanboard\Job\TaskEventJob;
use Kanboard\Job\TaskFileEventJob;
@@ -57,6 +58,10 @@ class JobProvider implements ServiceProviderInterface
return new NotificationJob($c);
});
+ $container['projectMetricJob'] = $container->factory(function ($c) {
+ return new ProjectMetricJob($c);
+ });
+
return $container;
}
}