1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-10 13:00:07 +02:00

👌 Bump recommended Valet version

This commit is contained in:
2022-10-25 23:30:49 +02:00
parent 786b59aa92
commit 24659d4385
4 changed files with 37 additions and 37 deletions

View File

@@ -19,11 +19,10 @@ struct Constants {
The minimum version of Valet that is recommended. The minimum version of Valet that is recommended.
If the installed version is older, a notification will be shown If the installed version is older, a notification will be shown
every time the app launches (with a recommendation to upgrade). every time the app launches (with a recommendation to upgrade).
The minimum requirement is currently synced to PHP 8.1 compatibility. See also: https://github.com/laravel/valet/releases/tag/v3.1.10
See also: https://github.com/laravel/valet/releases/tag/v2.16.2
*/ */
static let MinimumRecommendedValetVersion = "2.16.2" static let MinimumRecommendedValetVersion = "3.1.10"
/** /**
* The PHP versions supported by this application. * The PHP versions supported by this application.
@@ -42,13 +41,14 @@ struct Constants {
"7.4", "7.4",
"8.0", "8.0",
"8.1", "8.1",
"8.2",
// ==================== // ====================
// EXPERIMENTAL SUPPORT // EXPERIMENTAL SUPPORT
// ==================== // ====================
// Every release that supports the next release will always support the next // Every release that supports the next release will always support the next
// dev release. In this case, that means that the version below is detected. // dev release. In this case, that means that the version below is detected.
"8.2" "8.3"
] ]
struct Urls { struct Urls {

View File

@@ -25,3 +25,35 @@ protocol DomainListable {
func getListableUrl() -> URL? func getListableUrl() -> URL?
} }
extension ValetSite {
func getListableName() -> String {
return self.name
}
func getListableSecured() -> Bool {
return self.secured
}
func getListableAbsolutePath() -> String {
return self.absolutePath
}
func getListablePhpVersion() -> String {
return self.servingPhpVersion
}
func getListableKind() -> String {
return (self.aliasPath == nil) ? "linked" : "parked"
}
func getListableType() -> String {
return self.driver ?? "ZZZ"
}
func getListableUrl() -> URL? {
return URL(string: "\(self.secured ? "https://" : "http://")\(self.name).\(Valet.shared.config.tld)")
}
}

View File

@@ -9,7 +9,6 @@
import Foundation import Foundation
class ValetInteractor { class ValetInteractor {
public static func secure(site: ValetSite) async throws { public static func secure(site: ValetSite) async throws {
// TODO // TODO
} }
@@ -25,5 +24,4 @@ class ValetInteractor {
public static func unlink(site: ValetSite) async throws { public static func unlink(site: ValetSite) async throws {
// TODO // TODO
} }
} }

View File

@@ -232,34 +232,4 @@ class ValetSite: DomainListable {
return nil return nil
} }
// MARK: - DomainListable Protocol
func getListableName() -> String {
return self.name
}
func getListableSecured() -> Bool {
return self.secured
}
func getListableAbsolutePath() -> String {
return self.absolutePath
}
func getListablePhpVersion() -> String {
return self.servingPhpVersion
}
func getListableKind() -> String {
return (self.aliasPath == nil) ? "linked" : "parked"
}
func getListableType() -> String {
return self.driver ?? "ZZZ"
}
func getListableUrl() -> URL? {
return URL(string: "\(self.secured ? "https://" : "http://")\(self.name).\(Valet.shared.config.tld)")
}
} }