diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-05-23 20:43:51 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-05-23 20:43:51 -0400 |
commit | 8314c99b56e66c2b86dd32432bcf5ed94a3ece02 (patch) | |
tree | 564ed1c270a0907efb5be8da1d971526cd235c6e /app/ServiceProvider/QueueProvider.php | |
parent | dc6176fca23ea697380ab115aea976fa8271f047 (diff) |
Added QueueManager to process background jobs
Diffstat (limited to 'app/ServiceProvider/QueueProvider.php')
-rw-r--r-- | app/ServiceProvider/QueueProvider.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app/ServiceProvider/QueueProvider.php b/app/ServiceProvider/QueueProvider.php new file mode 100644 index 00000000..946b436a --- /dev/null +++ b/app/ServiceProvider/QueueProvider.php @@ -0,0 +1,27 @@ +<?php + +namespace Kanboard\ServiceProvider; + +use Kanboard\Core\Queue\QueueManager; +use Pimple\Container; +use Pimple\ServiceProviderInterface; + +/** + * Class QueueProvider + * + * @package Kanboard\ServiceProvider + * @author Frederic Guillot + */ +class QueueProvider implements ServiceProviderInterface +{ + /** + * Registers services on the given container. + * + * @param Container $container + */ + public function register(Container $container) + { + $container['queueManager'] = new QueueManager($container); + return $container; + } +} |