Overview

Namespaces

  • EmanueleMinotto
    • TwigCacheBundle
      • DataCollector
      • DependencyInjection
      • KeyGenerator
      • Strategy

Classes

  • ProfilerStrategy
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class ProfilerStrategy

Wrapper used to profile cache usage.

EmanueleMinotto\TwigCacheBundle\Strategy\ProfilerStrategy implements Asm89\Twig\CacheExtension\CacheStrategyInterface
Namespace: EmanueleMinotto\TwigCacheBundle\Strategy
Located at Strategy/ProfilerStrategy.php
Methods summary
public
# __construct( Asm89\Twig\CacheExtension\CacheStrategyInterface $cacheStrategy, EmanueleMinotto\TwigCacheBundle\DataCollector\TwigCacheCollector $dataCollector )

Parameters

$cacheStrategy
$dataCollector
public mixed
# fetchBlock( mixed $key )

Fetch the block for a given key.

Fetch the block for a given key.

Parameters

$key

Returns

mixed
public mixed
# generateKey( string $annotation, mixed $value )

Generate a key for the value.

Generate a key for the value.

Parameters

$annotation
$value

Returns

mixed
public mixed
# saveBlock( mixed $key, string $block )

Save the contents of a rendered block.

Save the contents of a rendered block.

Parameters

$key
$block

Returns

mixed
API documentation generated by ApiGen