class DoctrineCacheClearer extends Clearer (View source)

DoctrineCacheClearer.

Properties

protected $output from Clearer
protected $cacheDir from Clearer

Methods

__construct(EntityManager $entityManager, Kernel $kernel)

DoctrineCacheClearer constructor.

boolean
clear()

No description

string
getOutput()

No description

from Clearer
string
getCacheDir()

Get global cache directory.

from Clearer
bool
databaseAvailable()

Test if database is configured and reachable.

clearCacheDriver(CacheProvider $cacheDriver = null, $description = "")

No description

recreateProxies()

Recreate proxies files

Details

__construct(EntityManager $entityManager, Kernel $kernel)

DoctrineCacheClearer constructor.

Parameters

EntityManager $entityManager
Kernel $kernel

boolean clear()

Return Value

boolean

string getOutput()

Return Value

string

string getCacheDir()

Get global cache directory.

Return Value

string

bool databaseAvailable()

Test if database is configured and reachable.

Useful if cache is being cleared outside of a VM or a docker env.

Return Value

bool

protected clearCacheDriver(CacheProvider $cacheDriver = null, $description = "")

Parameters

CacheProvider $cacheDriver
$description

protected recreateProxies()

Recreate proxies files