summaryrefslogtreecommitdiff
path: root/app/ServiceProvider/CacheProvider.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/ServiceProvider/CacheProvider.php')
-rw-r--r--app/ServiceProvider/CacheProvider.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/ServiceProvider/CacheProvider.php b/app/ServiceProvider/CacheProvider.php
index fac44d53..90d63f81 100644
--- a/app/ServiceProvider/CacheProvider.php
+++ b/app/ServiceProvider/CacheProvider.php
@@ -4,6 +4,7 @@ namespace Kanboard\ServiceProvider;
use Kanboard\Core\Cache\FileCache;
use Kanboard\Core\Cache\MemoryCache;
+use Kanboard\Decorator\ColumnMoveRestrictionCacheDecorator;
use Kanboard\Decorator\MetadataCacheDecorator;
use Pimple\Container;
use Pimple\ServiceProviderInterface;
@@ -46,6 +47,13 @@ class CacheProvider implements ServiceProviderInterface
);
};
+ $container['columnMoveRestrictionCacheDecorator'] = function($c) {
+ return new ColumnMoveRestrictionCacheDecorator(
+ $c['memoryCache'],
+ $c['columnMoveRestrictionModel']
+ );
+ };
+
return $container;
}
}