Skip to content

Commit 24e290a

Browse files
committed
Want to move away from the singleton thing
1 parent 08a39d0 commit 24e290a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/JSONConfig/JSONConfig.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@ import PerfectLib
99

1010

1111
public class JSONConfig {
12-
public static let shared = JSONConfig()
1312
private var json:[String:Any]?
1413

1514
/**
1615
Initialze the configuration with json at source. The json is first populated by the json at defaults (if it exists)
1716
Note that the defaults are not deeply updated. Just the top level of keys are updated
1817
*/
19-
public func initialize(withJsonAt source:String, defaultsInJsonAt defaults:String? = nil) {
18+
public init(withJsonAt source:String, defaultsInJsonAt defaults:String? = nil) {
2019
self.json = nil
2120
if let defaults = defaults {
2221
self.read(jsonAt: defaults)

0 commit comments

Comments
 (0)