1 | <?php |
||
13 | class RefreshCommand extends Command |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * The console command name. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $name = 'js-localization:refresh'; |
||
22 | |||
23 | /** |
||
24 | * The console command description. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $description = "Refresh message cache after changing the config file"; |
||
29 | |||
30 | /** |
||
31 | * Execute the console command. |
||
32 | * |
||
33 | * @return void |
||
34 | * @throws ConfigException |
||
35 | */ |
||
36 | 3 | public function fire() |
|
59 | |||
60 | /** |
||
61 | * Generate the messages file. |
||
62 | * |
||
63 | * @param string $path |
||
64 | */ |
||
65 | public function generateMessagesFile($path) |
||
80 | |||
81 | /** |
||
82 | * Generage the config file. |
||
83 | * |
||
84 | * @param string $path |
||
85 | */ |
||
86 | public function generateConfigFile($path) |
||
103 | |||
104 | /** |
||
105 | * Transforms the cached data to stay compatible to old versions of the package. |
||
106 | * |
||
107 | * @param string $messages |
||
108 | * @return string |
||
109 | */ |
||
110 | protected function ensureBackwardsCompatibility($messages) |
||
118 | } |
||
119 |