1 | <?php |
||
34 | class ContentPostProcOutputHook extends AbstractHook |
||
35 | { |
||
36 | const TYPO3_PAGE_TAG = 'typo3_page'; |
||
37 | |||
38 | /** |
||
39 | * @var Header |
||
40 | */ |
||
41 | private $header; |
||
42 | |||
43 | 3 | public function __construct() |
|
48 | |||
49 | /** |
||
50 | * @param array $parameters |
||
51 | * @param TypoScriptFrontendController $parent |
||
52 | */ |
||
53 | 3 | public function sendHeader(array $parameters, TypoScriptFrontendController $parent) |
|
|
|||
54 | { |
||
55 | 3 | $this->sendPageTagHeader($parent); |
|
56 | 3 | $this->sendDebugHeader(); |
|
57 | 3 | if ((int)$parent->page['varnish_cache'] === 1) { |
|
58 | 2 | $this->header->sendEnabledHeader(); |
|
59 | } |
||
60 | 3 | } |
|
61 | |||
62 | /** |
||
63 | * @param TypoScriptFrontendController $parent |
||
64 | * @return void |
||
65 | */ |
||
66 | 3 | private function sendPageTagHeader(TypoScriptFrontendController $parent) |
|
74 | |||
75 | /** |
||
76 | * @return void |
||
77 | */ |
||
78 | 3 | private function sendDebugHeader() |
|
86 | } |
||
87 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.