1 | <?php |
||
13 | class ExportCommand extends Command |
||
14 | { |
||
15 | /** |
||
16 | * The console command name. |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $name = 'js-localization:export'; |
||
21 | |||
22 | /** |
||
23 | * The console command description. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $description = "Refresh message cache and export to static files"; |
||
28 | |||
29 | /** |
||
30 | * Execute the console command. |
||
31 | * |
||
32 | * @return void |
||
33 | * @throws ConfigException |
||
34 | */ |
||
35 | public function fire() |
||
51 | |||
52 | /** |
||
53 | * Generate the messages file. |
||
54 | * |
||
55 | * @param string $path |
||
56 | */ |
||
57 | public function generateMessagesFile($path) |
||
72 | |||
73 | /** |
||
74 | * Generage the config file. |
||
75 | * |
||
76 | * @param string $path |
||
77 | */ |
||
78 | public function generateConfigFile($path) |
||
95 | |||
96 | /** |
||
97 | * Transforms the cached data to stay compatible to old versions of the package. |
||
98 | * |
||
99 | * @param string $messages |
||
100 | * @return string |
||
101 | */ |
||
102 | protected function ensureBackwardsCompatibility($messages) |
||
110 | } |
||
111 |