1 | <?php |
||
26 | class CompileShell extends Shell |
||
|
|||
27 | { |
||
28 | /** |
||
29 | * Instance of TwigView to be used to compile templates. |
||
30 | * |
||
31 | * @var \WyriHaximus\TwigView\View\TwigView |
||
32 | */ |
||
33 | protected $twigView; |
||
34 | |||
35 | /** |
||
36 | * Constructor. |
||
37 | * |
||
38 | * @param \Cake\Console\ConsoleIo $io An IO instance. |
||
39 | */ |
||
40 | 4 | public function __construct(?ConsoleIo $io = null, ?LocatorInterface $locator = null) |
|
46 | |||
47 | /** |
||
48 | * Set TwigView. |
||
49 | * |
||
50 | * @param \WyriHaximus\TwigView\View\TwigView $twigView TwigView instance. |
||
51 | * |
||
52 | */ |
||
53 | 3 | public function setTwigview(TwigView $twigView) |
|
57 | |||
58 | /** |
||
59 | * Compile all templates. |
||
60 | * |
||
61 | */ |
||
62 | 1 | public function all() |
|
71 | |||
72 | /** |
||
73 | * Compile only this plugin. |
||
74 | * |
||
75 | * @param string $plugin Plugin name. |
||
76 | * |
||
77 | */ |
||
78 | 1 | public function plugin($plugin) |
|
83 | |||
84 | /** |
||
85 | * Only compile one file. |
||
86 | * |
||
87 | * @param string $fileName File to compile. |
||
88 | * |
||
89 | */ |
||
90 | 1 | public function file($fileName) |
|
95 | |||
96 | /** |
||
97 | * Set options for this console. |
||
98 | * |
||
99 | * @return \Cake\Console\ConsoleOptionParser |
||
100 | */ |
||
101 | 1 | public function getOptionParser(): ConsoleOptionParser |
|
123 | |||
124 | /** |
||
125 | * Walk over $iterator and compile all templates in it. |
||
126 | * |
||
127 | * @param mixed $iterator Iterator to walk over. |
||
128 | * |
||
129 | */ |
||
130 | 1 | protected function walkIterator($iterator) |
|
136 | |||
137 | /** |
||
138 | * Compile a template. |
||
139 | * |
||
140 | * @param string $fileName Template to compile. |
||
141 | * |
||
142 | */ |
||
143 | 2 | protected function compileTemplate($fileName) |
|
156 | } |
||
157 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.