1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-11 07:34:22 +02:00

feat(core): Improve Flextype Application class #463

This commit is contained in:
Awilum
2020-08-25 12:17:08 +03:00
parent 55f1f32265
commit 9a0c26c985
11 changed files with 97 additions and 2 deletions

View File

@@ -8,6 +8,11 @@ use Doctrine\Common\Cache\AcpuCache;
class AcpuCacheAdapter implements CacheAdapterInterface
{
/**
* Constructor
*
* @access public
*/
public function __construct()
{

View File

@@ -8,6 +8,16 @@ use Doctrine\Common\Cache\ArrayCache;
class ArrayCacheAdapter implements CacheAdapterInterface
{
/**
* Constructor
*
* @access public
*/
public function __construct()
{
}
public function getDriver() : object
{
return new ArrayCache();

View File

@@ -7,9 +7,9 @@ namespace Flextype\App\Foundation\Cache;
interface CacheAdapterInterface
{
/**
* Injects the dependency container
* Constructor
*
* @return void
* @access public
*/
public function __construct();

View File

@@ -9,6 +9,16 @@ use Flextype\Component\Filesystem\Filesystem;
class FilesystemCacheAdapter implements CacheAdapterInterface
{
/**
* Constructor
*
* @access public
*/
public function __construct()
{
}
public function getDriver() : object
{
$cache_directory = PATH['cache'] . '/doctrine/';

View File

@@ -9,6 +9,16 @@ use Memecached;
class MemcachedCacheAdapter implements CacheAdapterInterface
{
/**
* Constructor
*
* @access public
*/
public function __construct()
{
}
public function getDriver() : object
{
$memcached = new Memecached();

View File

@@ -8,6 +8,16 @@ use Flextype\Component\Filesystem\Filesystem;
class PhpArrayFileCacheAdapter implements CacheAdapterInterface
{
/**
* Constructor
*
* @access public
*/
public function __construct()
{
}
public function getDriver() : object
{
$cache_directory = PATH['cache'] . '/doctrine/';

View File

@@ -9,6 +9,16 @@ use Flextype\Component\Filesystem\Filesystem;
class PhpFileCacheAdapter implements CacheAdapterInterface
{
/**
* Constructor
*
* @access public
*/
public function __construct()
{
}
public function getDriver() : object
{
$cache_directory = PATH['cache'] . '/doctrine/';

View File

@@ -10,6 +10,16 @@ use RedisException;
class RedisCacheAdapter implements CacheAdapterInterface
{
/**
* Constructor
*
* @access public
*/
public function __construct()
{
}
public function getDriver() : object
{
$redis = new Redis();

View File

@@ -10,6 +10,16 @@ use SQLite3;
class SQLite3CacheAdapter implements CacheAdapterInterface
{
/**
* Constructor
*
* @access public
*/
public function __construct()
{
}
public function getDriver() : object
{
$cache_directory = PATH['cache'] . '/doctrine/';

View File

@@ -8,6 +8,16 @@ use Doctrine\Common\Cache\WinCacheCache;
class WinCacheCacheAdapter implements CacheAdapterInterface
{
/**
* Constructor
*
* @access public
*/
public function __construct()
{
}
public function getDriver() : object
{
return new WinCacheCache();

View File

@@ -8,6 +8,16 @@ use Doctrine\Common\Cache\ZendDataCache;
class ZendDataCacheCacheAdapter implements CacheAdapterInterface
{
/**
* Constructor
*
* @access public
*/
public function __construct()
{
}
public function getDriver() : object
{
return new ZendDataCache();