mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ce14060913
API Rename ‘Logger’ service name to ‘Psr\Log\LoggerInterface’ API DefaultCacheFactory constructor now takes an array of default arguments
21 lines
588 B
PHP
21 lines
588 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Core\Cache;
|
|
|
|
use Psr\SimpleCache\CacheInterface;
|
|
use SilverStripe\Core\Injector\Factory as InjectorFactory;
|
|
|
|
interface CacheFactory extends InjectorFactory
|
|
{
|
|
|
|
/**
|
|
* Note: While the returned object is used as a singleton (by the originating Injector->get() call),
|
|
* this cache object shouldn't be a singleton itself - it has varying constructor args for the same service name.
|
|
*
|
|
* @param string $service
|
|
* @param array $params
|
|
* @return CacheInterface
|
|
*/
|
|
public function create($service, array $params = array());
|
|
}
|