Symfony2 API
Class

Symfony\Bridge\Doctrine\CacheWarmer\ProxyCacheWarmer

class ProxyCacheWarmer implements CacheWarmerInterface

The proxy generator cache warmer generates all entity proxies.

In the process of generating proxies the cache for all the metadata is primed also,
since this information is necessary to build the proxies in the first place.

Methods

__construct(ManagerRegistry $registry)

Constructor.

false isOptional()

Checks whether this warmer is optional or not.

warmUp(string $cacheDir)

Warms up the cache.

Details

at line 34
public __construct(ManagerRegistry $registry)

Constructor.

Parameters

ManagerRegistry $registry A ManagerRegistry instance

at line 44
public false isOptional()

Checks whether this warmer is optional or not.

Optional warmers can be ignored on certain conditions.

A warmer should return true if the cache can be
generated incrementally and on-demand.

Return Value

false true if the warmer is optional, false otherwise

at line 52
public warmUp(string $cacheDir)

Warms up the cache.

Parameters

string $cacheDir The cache directory