1 | <?php |
||
19 | class ViewRenderer extends BaseViewRenderer |
||
20 | { |
||
21 | |||
22 | /** |
||
23 | * Origin renderer using to render file if not set [[View::renderPhpFile]] will be use. |
||
24 | * |
||
25 | * @var null|ViewRenderer |
||
26 | */ |
||
27 | public $renderer; |
||
28 | |||
29 | /** |
||
30 | * @var string the device dir |
||
31 | * @see [[getFile()]] |
||
32 | */ |
||
33 | public $dir; |
||
34 | |||
35 | /** |
||
36 | * @inheritDoc |
||
37 | */ |
||
38 | 6 | public function init() |
|
47 | |||
48 | /** |
||
49 | * @inheritDoc |
||
50 | * @throws \Throwable |
||
51 | */ |
||
52 | 6 | public function render($view, $file, $params) |
|
72 | |||
73 | /** |
||
74 | * Returns the file version of a specified [[$dir]]. |
||
75 | * |
||
76 | * @param string $baseFile |
||
77 | * @return string |
||
78 | */ |
||
79 | 6 | protected function getFile(string $baseFile): string |
|
93 | } |
||
94 |