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