summaryrefslogtreecommitdiff
path: root/app/ServiceProvider/QueueProvider.php
blob: 946b436a90462b35ef5a39bd9728c57798c3ad8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;
    }
}