Skip to content

Commit

Permalink
fix: Endpoint manager dependency generation
Browse files Browse the repository at this point in the history
  • Loading branch information
andrej.jasso@goodrequest.com committed Sep 13, 2021
1 parent 57137f3 commit ef474ed
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,27 @@
</array>
</dict>

<dict>
<key>Identifier</key>
<string>VAR</string>
<key>Required</key>
<true/>
<key>Name</key>
<string>VariableName</string>
<key>Description</key>
<string>The name of the variable when using the dependency</string>
<key>Type</key>
<string>text</string>
<key>Default</key>
<string>myAny+(Manager)</string>
<key>NotPersisted</key>
<true/>
<key>Nodes</key>
<array>
<string>Base</string>
</array>
</dict>

<dict/>
</array>
</dict>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,21 @@ class ___VARIABLE_ID___RequestManager: ___VARIABLE_ID___RequestManagerType {
}

}

// MARK: Manager Implementation

protocol With___VARIABLE_ID___RequestManager: AnyObject {

var ___VARIABLE_VAR___RequestManager: ___VARIABLE_ID___RequestManagerType { get }

}

// MARK: Manager Implementation

extension DependencyContainer: With___VARIABLE_ID___RequestManager {

var ___VARIABLE_VAR___RequestManager: ___VARIABLE_ID___RequestManagerType {
return ___VARIABLE_ID___RequestManager(server: .base)
}

}

0 comments on commit ef474ed

Please sign in to comment.