RouterCacheWarmer

class RouterCacheWarmer implements CacheWarmerInterface

Generates the router matcher and generator classes.

Methods

__construct(RouterInterface $router)

Constructor.

warmUp(string $cacheDir)

Warms up the cache.

bool isOptional()

Checks whether this warmer is optional or not.

Details

__construct(RouterInterface $router)

Constructor.

Parameters

RouterInterface $router A Router instance

warmUp(string $cacheDir)

Warms up the cache.

Parameters

string $cacheDir The cache directory

bool isOptional()

Checks whether this warmer is optional or not.

Return Value

bool true if the warmer is optional, false otherwise
doc_Symfony
2016-10-28 06:31:09
Comments
Leave a Comment

Please login to continue.