summaryrefslogtreecommitdiff
path: root/app/ServiceProvider/HelperProvider.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/ServiceProvider/HelperProvider.php')
-rw-r--r--app/ServiceProvider/HelperProvider.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/app/ServiceProvider/HelperProvider.php b/app/ServiceProvider/HelperProvider.php
new file mode 100644
index 00000000..42a0c85e
--- /dev/null
+++ b/app/ServiceProvider/HelperProvider.php
@@ -0,0 +1,34 @@
+<?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('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('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['template'] = new Template($container['helper']);
+
+ return $container;
+ }
+}