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 handle() |
||
53 | |||
54 | /** |
||
55 | * Execute the console command. |
||
56 | * Compatibility with previous Laravel 5.x versions. |
||
57 | * |
||
58 | * @return void |
||
59 | * @throws ConfigException |
||
60 | */ |
||
61 | public function fire() |
||
65 | |||
66 | /** |
||
67 | * Create full file path. |
||
68 | * This method will also generate the directories if they don't exist already. |
||
69 | * |
||
70 | * @var string $filename |
||
71 | * |
||
72 | * @return string $path |
||
73 | */ |
||
74 | public function createPath($filename) |
||
83 | |||
84 | /** |
||
85 | * Generate the messages file. |
||
86 | * |
||
87 | * @param string $path |
||
88 | */ |
||
89 | public function generateMessagesFile($path) |
||
99 | |||
100 | /** |
||
101 | * Generage the config file. |
||
102 | * |
||
103 | * @param string $path |
||
104 | */ |
||
105 | public function generateConfigFile($path) |
||
119 | } |
||
120 |