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:
2
flextype/cache/AcpuAdapter.php
vendored
2
flextype/cache/AcpuAdapter.php
vendored
@@ -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
|
||||
{
|
||||
|
3
flextype/cache/CacheAdapterInterface.php
vendored
3
flextype/cache/CacheAdapterInterface.php
vendored
@@ -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;
|
||||
}
|
||||
|
2
flextype/cache/RedisAdapter.php
vendored
2
flextype/cache/RedisAdapter.php
vendored
@@ -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
|
||||
{
|
||||
|
4
flextype/cache/SQLite3Adapter.php
vendored
4
flextype/cache/SQLite3Adapter.php
vendored
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user