ProxyCacheWarmer

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.

Boolean isOptional()

This cache warmer is not optional, without proxies fatal error occurs!

warmUp(string $cacheDir)

Warms up the cache.

Details

__construct(ManagerRegistry $registry)

Constructor.

Parameters

ManagerRegistry $registry A ManagerRegistry instance

Boolean isOptional()

This cache warmer is not optional, without proxies fatal error occurs!

Return Value

Boolean true if the warmer is optional, false otherwise

warmUp(string $cacheDir)

Warms up the cache.

Parameters

string $cacheDir The cache directory

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.3/Symfony/Bridge/Doctrine/CacheWarmer/ProxyCacheWarmer.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部