for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author jan huang <[email protected]>
* @copyright 2016
*
* @see https://www.github.com/janhuang
* @see https://fastdlabs.com
*/
namespace FastD\ServiceProvider;
use FastD\Container\Container;
use FastD\Container\ServiceProviderInterface;
use FastD\Pool\CachePool;
* Class CacheServiceProvider.
class CacheServiceProvider implements ServiceProviderInterface
{
* @param Container $container
* @return mixed
public function register(Container $container)
$config = $container->get('config')->get('cache');
$container->add('cache', new CachePool($config));
unset($config);
}