1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2026-04-05 02:40:08 +02:00

♻️ Even more refactoring

This commit is contained in:
2025-10-09 16:05:32 +02:00
parent 372c11f924
commit 9e76ca7b25
45 changed files with 230 additions and 223 deletions

View File

@@ -10,7 +10,7 @@ import Foundation
class BrewTapFormulae {
public static func from(tap: String) -> [String: [BrewPhpExtension]] {
let directory = "\(Paths.tapPath)/\(tap)/Formula"
let directory = "\(App.shared.container.paths.tapPath)/\(tap)/Formula"
let files = try? App.shared.container.filesystem.getShallowContentsOfDirectory(directory)
@@ -35,7 +35,7 @@ class BrewTapFormulae {
// Create a new BrewPhpExtension object (determines if installed)
let phpExtension = BrewPhpExtension(
path: "\(Paths.tapPath)/\(tap)/Formula/\(file)",
path: "\(App.shared.container.paths.tapPath)/\(tap)/Formula/\(file)",
name: phpExtensionName,
phpVersion: phpVersion
)