for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* YAWIK
*
* @filesource
* @license MIT
* @copyright 2013 - 2016 Cross Solution <http://cross-solution.de>
*/
namespace Organizations\Factory\Image;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
use Organizations\Image\FileCache;
* @author Miroslav Fedeleš <[email protected]>
* @since 0.28
class FileCacheFactory implements FactoryInterface
{
* {@inheritDoc}
* @see \Zend\ServiceManager\FactoryInterface::createService()
public function createService(ServiceLocatorInterface $serviceLocator)
$config = $serviceLocator->get('Config')['Organizations']['ImageFileCache'];
return new FileCache($config['filePath'], $config['uriPath']);
}