Refactor General.php to update application fqdn handling

This commit is contained in:
Andras Bacsai 2024-04-16 09:43:42 +02:00
parent 9f1e2d6192
commit 0e43e5d295

View File

@ -214,6 +214,12 @@ public function updatedApplicationBaseDirectory()
}
public function updatedApplicationFqdn()
{
$this->application->fqdn = str($this->application->fqdn)->replaceEnd(',', '')->trim();
$this->application->fqdn = str($this->application->fqdn)->replaceStart(',', '')->trim();
$this->application->fqdn = str($this->application->fqdn)->trim()->explode(',')->map(function ($domain) {
return str($domain)->trim()->lower();
});
$this->application->fqdn = $this->application->fqdn->unique()->implode(',');
$this->resetDefaultLabels();
}
public function updatedApplicationBuildPack()