1 | <?php |
||
8 | abstract class MakeSupervisorConfig |
||
9 | { |
||
10 | use Dispatchable, Queueable; |
||
11 | |||
12 | /** |
||
13 | * Supervisor config folder path. |
||
14 | */ |
||
15 | protected $path; |
||
16 | |||
17 | /** |
||
18 | * Supervisor configuration name. |
||
19 | */ |
||
20 | protected $fileName; |
||
21 | |||
22 | /** |
||
23 | * Supervisor config parameters. |
||
24 | */ |
||
25 | protected $params; |
||
26 | |||
27 | /** |
||
28 | * Name of the supervisor process. |
||
29 | */ |
||
30 | protected $processName = ''; |
||
31 | |||
32 | /** |
||
33 | * Create a new job instance. |
||
34 | */ |
||
35 | 12 | public function __construct(array $params = [], string $fileName = '', string $path = '/etc/supervisor/conf.d/') |
|
41 | |||
42 | /** |
||
43 | * Execute the job. |
||
44 | * |
||
45 | * @return string |
||
46 | */ |
||
47 | 12 | public function handle() |
|
56 | |||
57 | 12 | protected function makeSupervisorConfig(string $programName, array $data) |
|
85 | |||
86 | 12 | protected function getLogsPath(): string |
|
90 | |||
91 | /** |
||
92 | * @return string |
||
93 | */ |
||
94 | 12 | protected function configName(): string |
|
98 | |||
99 | 12 | protected function getApplicationName() |
|
103 | } |
||
104 |