for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PortlandLabs\Slackbot\Provider\Illuminate;
use Cache\Adapter\Filesystem\FilesystemCachePool;
use Illuminate\Container\Container;
use Psr\SimpleCache\CacheInterface;
class Cache implements Provider
{
/**
* Register this provider
*
* @param Container $container
* @return void
*/
public function register(Container $container)
$cacheDir = getenv('CACHE_DIR') ?: 'cache';
$container->singleton(CacheInterface::class, FilesystemCachePool::class);
$container->when(FilesystemCachePool::class)->needs('$folder')->give($cacheDir);
}