You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -533,15 +553,14 @@ protected function header(): void {
533
553
$title = 'Welcome to the Vortex interactive installer';
534
554
$content = '';
535
555
536
-
$ref = $this->config->get(Config::REF);
537
-
if ($ref == RepositoryDownloader::REF_STABLE) {
556
+
if ($this->artifact->isStable()) {
538
557
$content .= 'This tool will guide you through installing the latest ' . Tui::underscore('stable') . ' version of Vortex into your project.' . PHP_EOL;
539
558
}
540
-
elseif ($ref == RepositoryDownloader::REF_HEAD) {
559
+
elseif ($this->artifact->isDevelopment()) {
541
560
$content .= 'This tool will guide you through installing the latest ' . Tui::underscore('development') . ' version of Vortex into your project.' . PHP_EOL;
542
561
}
543
562
else {
544
-
$content .= sprintf('This tool will guide you through installing a ' . Tui::underscore('custom') . ' version of Vortex into your project at commit "%s".', $ref) . PHP_EOL;
563
+
$content .= sprintf('This tool will guide you through installing a ' . Tui::underscore('custom') . ' version of Vortex into your project at commit "%s".', $this->artifact->getRef()) . PHP_EOL;
545
564
}
546
565
547
566
$content .= PHP_EOL;
@@ -737,28 +756,6 @@ public function cleanup(): void {
737
756
}
738
757
}
739
758
740
-
/**
741
-
* Check if repository and reference validation should be performed.
742
-
*
743
-
* Validation is skipped for default Vortex repo with stable/HEAD refs.
744
-
* Validation is required for custom repositories or custom references.
745
-
*
746
-
* @return bool
747
-
* TRUE if validation should be performed, FALSE otherwise.
0 commit comments