1 | <?php |
||
33 | class OptimizeCommand extends Command |
||
34 | { |
||
35 | /** @var Smarty */ |
||
36 | protected $smarty; |
||
37 | |||
38 | /** @var ConfigContract */ |
||
39 | protected $config; |
||
40 | |||
41 | /** |
||
42 | * @param Smarty $smarty |
||
43 | * @param ConfigContract $config |
||
44 | */ |
||
45 | public function __construct(Smarty $smarty, ConfigContract $config) |
||
51 | |||
52 | /** |
||
53 | * The console command name. |
||
54 | * |
||
55 | * @var string |
||
56 | */ |
||
57 | protected $name = 'ytake:smarty-optimize'; |
||
58 | |||
59 | /** |
||
60 | * The console command description. |
||
61 | * |
||
62 | * @var string |
||
63 | */ |
||
64 | protected $description = 'Compile all known templates.'; |
||
65 | |||
66 | /** |
||
67 | * Execute the console command. |
||
68 | * |
||
69 | */ |
||
70 | public function handle() |
||
85 | |||
86 | /** |
||
87 | * Get the console command options. |
||
88 | * |
||
89 | * @return array |
||
90 | */ |
||
91 | protected function getOptions() |
||
98 | |||
99 | /** |
||
100 | * @return bool |
||
101 | */ |
||
102 | protected function forceCompile() |
||
109 | } |
||
110 |