ConfigDataCollector::collect()

collect(Request $request, Response $response, Exception $exception = null) Collects data for the given Request and Response. Parameters Request $request A Request instance Response $response A Response instance Exception $exception An Exception instance

ConfigDataCollector

class ConfigDataCollector extends DataCollector ConfigDataCollector. Methods serialize() from DataCollector unserialize($data) from DataCollector __construct(string $name = null, string $version = null) Constructor. setKernel(KernelInterface $kernel = null) Sets the Kernel associated with this Request. collect(Request $request, Response $response, Exception $exception = null) Collects data for the given Request and Response. getApplicationName() getApplicat

ConfigCachePass

class ConfigCachePass implements CompilerPassInterface Adds services tagged configcache.resourcechecker to the configcachefactory service, ordering them by priority. Methods process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. Details process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. Parameters ContainerBuilder $container

ConfigCacheInterface::write()

write(string $content, array $metadata = null) Writes the given content into the cache file. Metadata will be stored independently and can be used to check cache freshness at a later time. Parameters string $content The content to write into the cache array $metadata An array of ResourceInterface instances Exceptions RuntimeException When the cache file cannot be written

ConfigCacheInterface::isFresh()

bool isFresh() Checks if the cache is still fresh. This check should take the metadata passed to the write() method into consideration. Return Value bool Whether the cache is still fresh

ConfigCacheInterface::getPath()

string getPath() Gets the cache file path. Return Value string The cache file path

ConfigCacheInterface

interface ConfigCacheInterface Interface for ConfigCache. Methods string getPath() Gets the cache file path. bool isFresh() Checks if the cache is still fresh. write(string $content, array $metadata = null) Writes the given content into the cache file. Metadata will be stored independently and can be used to check cache freshness at a later time. Details string getPath() Gets the cache file path. Return Value string The cache file p

ConfigCacheFactoryInterface

interface ConfigCacheFactoryInterface Interface for a ConfigCache factory. This factory creates an instance of ConfigCacheInterface and initializes the cache if necessary. Methods ConfigCacheInterface cache(string $file, callable $callable) Creates a cache instance and (re-)initializes it if necessary. Details ConfigCacheInterface cache(string $file, callable $callable) Creates a cache instance and (re-)initializes it if necessary. Parameters

ConfigCacheFactory

class ConfigCacheFactory implements ConfigCacheFactoryInterface Basic implementation of ConfigCacheFactoryInterface that creates an instance of the default ConfigCache. This factory and/or cache do not support cache validation by means of ResourceChecker instances (that is, service-based). Methods __construct(bool $debug) ConfigCacheInterface cache(string $file, $callback) Creates a cache instance and (re-)initializes it if necessary. Details __cons

ConfigCache

class ConfigCache extends ResourceCheckerConfigCache ConfigCache caches arbitrary content in files on disk. When in debug mode, those metadata resources that implement \Symfony\Component\Config\Resource\SelfCheckingResourceInterface will be used to check cache freshness. Methods __construct(string $file, bool $debug) string getPath() Gets the cache file path. from ResourceCheckerConfigCache bool isFresh() Checks if the cache is still fresh. write(string $content, array $me