| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class SiteConfBuilder |
||
| 9 | { |
||
| 10 | protected $files; |
||
| 11 | |||
| 12 | public function __construct(Filesystem $files) |
||
| 15 | } |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Build the nginx.conf file for a given site |
||
| 19 | * |
||
| 20 | * @param \App\Models\Site $site |
||
| 21 | * @throws \Throwable |
||
| 22 | */ |
||
| 23 | public function build(Site $site) |
||
| 32 | ); |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Destroy the nginx.conf conf for a given site |
||
| 37 | * |
||
| 38 | * @param \App\Models\Site $site |
||
| 39 | */ |
||
| 40 | public function destroy(Site $site) |
||
| 45 |