mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-07 03:50:08 +02:00
👌 Bump recommended Valet version
This commit is contained in:
@ -19,11 +19,10 @@ struct Constants {
|
||||
The minimum version of Valet that is recommended.
|
||||
If the installed version is older, a notification will be shown
|
||||
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/v2.16.2
|
||||
|
||||
See also: https://github.com/laravel/valet/releases/tag/v3.1.10
|
||||
*/
|
||||
static let MinimumRecommendedValetVersion = "2.16.2"
|
||||
static let MinimumRecommendedValetVersion = "3.1.10"
|
||||
|
||||
/**
|
||||
* The PHP versions supported by this application.
|
||||
@ -42,13 +41,14 @@ struct Constants {
|
||||
"7.4",
|
||||
"8.0",
|
||||
"8.1",
|
||||
"8.2",
|
||||
|
||||
// ====================
|
||||
// EXPERIMENTAL SUPPORT
|
||||
// ====================
|
||||
// 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.
|
||||
"8.2"
|
||||
"8.3"
|
||||
]
|
||||
|
||||
struct Urls {
|
||||
|
@ -25,3 +25,35 @@ protocol DomainListable {
|
||||
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)")
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -9,7 +9,6 @@
|
||||
import Foundation
|
||||
|
||||
class ValetInteractor {
|
||||
|
||||
public static func secure(site: ValetSite) async throws {
|
||||
// TODO
|
||||
}
|
||||
@ -25,5 +24,4 @@ class ValetInteractor {
|
||||
public static func unlink(site: ValetSite) async throws {
|
||||
// TODO
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -232,34 +232,4 @@ class ValetSite: DomainListable {
|
||||
|
||||
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)")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user