Merge pull request #69 from TouchInstinct/fix/networkExtension

Extension fixed
This commit is contained in:
ArturAzarau 2019-04-12 14:48:08 +03:00 committed by GitHub
commit dc5bdc6b7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -2,14 +2,16 @@ import LeadKit
import RxSwift
import Alamofire
extension {{ networkServiceName }} {
{% set serviceName = concat(networkServiceName, "NetworkService") -%}
extension {{ serviceName }} {
{% for method in methods %}
{%- include 'blocks/method/method-func.twig' with { method: method, isStatic: false } %}
{% endfor %}
}
extension Singleton where Self: {{ networkServiceName }} {
extension Singleton where Self: {{ serviceName }} {
{% for method in methods %}
{%- include 'blocks/method/method-func.twig' with { method: method, isStatic: true } %}