summaryrefslogtreecommitdiff
path: root/app/ServiceProvider/ExternalTaskProvider.php
blob: 52484ae6d24e6cbfb0d6b59dcfe962729dcc3359 (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
28
29
<?php

namespace Kanboard\ServiceProvider;

use Kanboard\Core\ExternalTask\ExternalTaskManager;
use Pimple\Container;
use Pimple\ServiceProviderInterface;

/**
 * Class ExternalTaskProvider
 *
 * @package Kanboard\ServiceProvider
 * @author  Frederic Guillot
 */
class ExternalTaskProvider implements ServiceProviderInterface
{
    /**
     * Register providers
     *
     * @access public
     * @param  \Pimple\Container $container
     * @return \Pimple\Container
     */
    public function register(Container $container)
    {
        $container['externalTaskManager'] = new ExternalTaskManager();
        return $container;
    }
}