Skip to content

Commit 4a3dee3

Browse files
🚀 Version 7.0.2
2 parents 5104a86 + 9d5a0ed commit 4a3dee3

File tree

32 files changed

+388
-138
lines changed

32 files changed

+388
-138
lines changed

PHP Monitor.xcodeproj/project.pbxproj

Lines changed: 34 additions & 22 deletions
Large diffs are not rendered by default.

PHP Monitor.xcodeproj/xcshareddata/xcschemes/PHP Monitor DEV.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1500"
3+
LastUpgradeVersion = "1530"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

PHP Monitor.xcodeproj/xcshareddata/xcschemes/PHP Monitor EAP.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1500"
3+
LastUpgradeVersion = "1530"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

PHP Monitor.xcodeproj/xcshareddata/xcschemes/PHP Monitor Self-Updater.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1500"
3+
LastUpgradeVersion = "1530"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

PHP Monitor.xcodeproj/xcshareddata/xcschemes/PHP Monitor.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1500"
3+
LastUpgradeVersion = "1530"
44
version = "1.7">
55
<BuildAction
66
parallelizeBuildables = "YES"

PHP Monitor.xcodeproj/xcshareddata/xcschemes/Unit Tests.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1500"
3+
LastUpgradeVersion = "1530"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"colors" : [
3+
{
4+
"color" : {
5+
"color-space" : "srgb",
6+
"components" : {
7+
"alpha" : "1.000",
8+
"blue" : "1.000",
9+
"green" : "1.000",
10+
"red" : "1.000"
11+
}
12+
},
13+
"idiom" : "universal"
14+
},
15+
{
16+
"appearances" : [
17+
{
18+
"appearance" : "luminosity",
19+
"value" : "dark"
20+
}
21+
],
22+
"color" : {
23+
"color-space" : "srgb",
24+
"components" : {
25+
"alpha" : "1.000",
26+
"blue" : "0.172",
27+
"green" : "0.182",
28+
"red" : "0.182"
29+
}
30+
},
31+
"idiom" : "universal"
32+
}
33+
],
34+
"info" : {
35+
"author" : "xcode",
36+
"version" : 1
37+
}
38+
}

phpmon/Assets.xcassets/StatusColorBlue.colorset/Contents.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"components" : {
2525
"alpha" : "1.000",
2626
"blue" : "0.988",
27-
"green" : "0.723",
27+
"green" : "0.444",
2828
"red" : "0.277"
2929
}
3030
},
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"colors" : [
3+
{
4+
"color" : {
5+
"color-space" : "srgb",
6+
"components" : {
7+
"alpha" : "0.300",
8+
"blue" : "0.180",
9+
"green" : "0.841",
10+
"red" : "1.000"
11+
}
12+
},
13+
"idiom" : "universal"
14+
},
15+
{
16+
"appearances" : [
17+
{
18+
"appearance" : "luminosity",
19+
"value" : "dark"
20+
}
21+
],
22+
"color" : {
23+
"color-space" : "srgb",
24+
"components" : {
25+
"alpha" : "0.300",
26+
"blue" : "0.426",
27+
"green" : "0.809",
28+
"red" : "1.000"
29+
}
30+
},
31+
"idiom" : "universal"
32+
}
33+
],
34+
"info" : {
35+
"author" : "xcode",
36+
"version" : 1
37+
}
38+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "php.svg",
5+
"idiom" : "universal",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "universal",
10+
"scale" : "2x"
11+
},
12+
{
13+
"idiom" : "universal",
14+
"scale" : "3x"
15+
}
16+
],
17+
"info" : {
18+
"author" : "xcode",
19+
"version" : 1
20+
},
21+
"properties" : {
22+
"preserves-vector-representation" : true,
23+
"template-rendering-intent" : "template"
24+
}
25+
}
Lines changed: 1 addition & 0 deletions
Loading

phpmon/Common/Core/Constants.swift

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ struct Constants {
3030
will be displayed to let them know that certain operations
3131
will not work correctly and that they need to update their app.
3232
*/
33-
static let PhpFormulaeCutoffDate = "2024-11-01"
33+
static let PhpFormulaeCutoffDate = "2024-11-01" // YYYY-MM-DD
3434

3535
/**
3636
* The PHP versions that are considered pre-release versions.
@@ -54,6 +54,17 @@ struct Constants {
5454
})
5555
}
5656

57+
/**
58+
The Homebrew services that should be automatically
59+
detected and show up in the list of managed services.
60+
*/
61+
static let DetectedHomebrewServices: Set = [
62+
"mailhog",
63+
"mysql@",
64+
"postgresql@",
65+
"redis"
66+
]
67+
5768
/**
5869
* The PHP versions supported by this application.
5970
* Any other PHP versions are considered invalid.
@@ -78,14 +89,14 @@ struct Constants {
7889
3: // Valet v3 dropped support for v5.6
7990
[
8091
"7.0", "7.1", "7.2", "7.3", "7.4",
81-
"8.0", "8.1", "8.2",
82-
"8.3", "8.4" // dev
92+
"8.0", "8.1", "8.2", "8.3",
93+
"8.4" // dev
8394
],
8495
4: // Valet v4 dropped support for v7.0
8596
[
8697
"7.1", "7.2", "7.3", "7.4",
87-
"8.0", "8.1", "8.2",
88-
"8.3", "8.4" // dev
98+
"8.0", "8.1", "8.2", "8.3",
99+
"8.4" // dev
89100
]
90101
]
91102

phpmon/Common/Helpers/PMWindowController.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ class PMWindowController: NSWindowController, NSWindowDelegate {
2929
App.shared.remove(window: windowName)
3030
}
3131

32+
func windowDidResize(_ notification: Notification) {}
33+
3234
deinit {
3335
Log.perf("deinit: \(String(describing: self)).\(#function)")
3436
}

phpmon/Common/PHP/PhpInstallation.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ class PhpInstallation {
2222
return self.iniFiles.flatMap({ $0.extensions })
2323
}
2424

25+
var formulaName: String {
26+
let version = self.versionNumber.short
27+
28+
if version == PhpEnvironments.brewPhpAlias {
29+
return "php"
30+
}
31+
32+
return "php@\(self.versionNumber.short)"
33+
}
34+
2535
/**
2636
In order to determine details about a PHP installation,
2737
we’ll simply run `php-config --version` in the relevant directory.

0 commit comments

Comments
 (0)