summaryrefslogtreecommitdiff
path: root/app/ServiceProvider/HelperProvider.php
blob: bf3956a276210abb730e75d4aad04ed4f5593554 (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
30
31
32
33
34
35
36
37
38
39
<?php

namespace Kanboard\ServiceProvider;

use Kanboard\Core\Helper;
use Kanboard\Core\Template;
use Pimple\Container;
use Pimple\ServiceProviderInterface;

class HelperProvider implements ServiceProviderInterface
{
    public function register(Container $container)
    {
        $container['helper'] = new Helper($container);
        $container['helper']->register('app', '\Kanboard\Helper\AppHelper');
        $container['helper']->register('calendar', '\Kanboard\Helper\CalendarHelper');
        $container['helper']->register('asset', '\Kanboard\Helper\AssetHelper');
        $container['helper']->register('board', '\Kanboard\Helper\BoardHelper');
        $container['helper']->register('dt', '\Kanboard\Helper\DateHelper');
        $container['helper']->register('file', '\Kanboard\Helper\FileHelper');
        $container['helper']->register('form', '\Kanboard\Helper\FormHelper');
        $container['helper']->register('hook', '\Kanboard\Helper\HookHelper');
        $container['helper']->register('ical', '\Kanboard\Helper\ICalHelper');
        $container['helper']->register('layout', '\Kanboard\Helper\LayoutHelper');
        $container['helper']->register('model', '\Kanboard\Helper\ModelHelper');
        $container['helper']->register('subtask', '\Kanboard\Helper\SubtaskHelper');
        $container['helper']->register('task', '\Kanboard\Helper\TaskHelper');
        $container['helper']->register('text', '\Kanboard\Helper\TextHelper');
        $container['helper']->register('url', '\Kanboard\Helper\UrlHelper');
        $container['helper']->register('user', '\Kanboard\Helper\UserHelper');
        $container['helper']->register('avatar', '\Kanboard\Helper\AvatarHelper');
        $container['helper']->register('projectHeader', '\Kanboard\Helper\ProjectHeaderHelper');
        $container['helper']->register('projectActivity', '\Kanboard\Helper\ProjectActivityHelper');

        $container['template'] = new Template($container['helper']);

        return $container;
    }
}