1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-07 05:36:54 +02:00

refactor(core): fix code standard for cache #347

This commit is contained in:
Awilum
2020-01-09 00:02:50 +03:00
parent 7c3e5a181f
commit 2dc53f95e1
4 changed files with 4 additions and 7 deletions

View File

@@ -4,8 +4,8 @@ declare(strict_types=1);
namespace Flextype\Cache;
use Psr\Container\ContainerInterface;
use Doctrine\Cache\Common\AcpuCache;
use Psr\Container\ContainerInterface;
class AcpuAdapter implements CacheAdapterInterface
{

View File

@@ -11,15 +11,12 @@ interface CacheAdapterInterface
/**
* Injects the dependency container
*
* @param \Psr\Container\ContainerInterface $container
* @return void
*/
function __construct(ContainerInterface $container);
/**
* Returns the cache driver object
*
* @return object
*/
public function getDriver() : object;
}

View File

@@ -4,10 +4,10 @@ declare(strict_types=1);
namespace Flextype\Cache;
use Doctrine\Common\Cache\RedisCache;
use Psr\Container\ContainerInterface;
use Redis;
use RedisException;
use Doctrine\Common\Cache\RedisCache;
class RedisAdapter implements CacheAdapterInterface
{

View File

@@ -4,10 +4,10 @@ declare(strict_types=1);
namespace Flextype\Cache;
use Flextype\Component\Filesystem\Filesystem;
use SQLite3;
use Doctrine\Common\Cache\SQLite3Cache;
use Flextype\Component\Filesystem\Filesystem;
use Psr\Container\ContainerInterface;
use SQLite3;
class SQLite3Adapter implements CacheAdapterInterface
{