@@ 75-85 (lines=11) @@ | ||
72 | /** |
|
73 | * Constructor. |
|
74 | */ |
|
75 | public function __construct( |
|
76 | CacheManager $cacheManager, |
|
77 | UrlGeneratorInterface $urlGenerator, |
|
78 | RuleMatcherInterface $mustInvalidateRule, |
|
79 | ExpressionLanguage $expressionLanguage = null |
|
80 | ) { |
|
81 | $this->cacheManager = $cacheManager; |
|
82 | $this->urlGenerator = $urlGenerator; |
|
83 | $this->expressionLanguage = $expressionLanguage; |
|
84 | $this->mustInvalidateRule = $mustInvalidateRule; |
|
85 | } |
|
86 | ||
87 | /** |
|
88 | * Apply invalidators and flush cache manager. |
@@ 68-80 (lines=13) @@ | ||
65 | /** |
|
66 | * Constructor. |
|
67 | */ |
|
68 | public function __construct( |
|
69 | CacheManager $cacheManager, |
|
70 | SymfonyResponseTagger $tagHandler, |
|
71 | RuleMatcherInterface $cacheableRule, |
|
72 | RuleMatcherInterface $mustInvalidateRule, |
|
73 | ExpressionLanguage $expressionLanguage = null |
|
74 | ) { |
|
75 | $this->cacheManager = $cacheManager; |
|
76 | $this->symfonyResponseTagger = $tagHandler; |
|
77 | $this->cacheableRule = $cacheableRule; |
|
78 | $this->mustInvalidateRule = $mustInvalidateRule; |
|
79 | $this->expressionLanguage = $expressionLanguage; |
|
80 | } |
|
81 | ||
82 | /** |
|
83 | * Process the _tags request attribute, which is set when using the Tag |