Fixed static inject args order
This commit is contained in:
@@ -15,7 +15,7 @@ __title__ = 'cpl_core.dependency_injection'
|
||||
__author__ = 'Sven Heidemann'
|
||||
__license__ = 'MIT'
|
||||
__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de'
|
||||
__version__ = '2022.12.1.post2'
|
||||
__version__ = '2022.12.1.post3'
|
||||
|
||||
from collections import namedtuple
|
||||
|
||||
@@ -31,4 +31,4 @@ from .service_provider import ServiceProvider
|
||||
from .service_provider_abc import ServiceProviderABC
|
||||
|
||||
VersionInfo = namedtuple('VersionInfo', 'major minor micro')
|
||||
version_info = VersionInfo(major='2022', minor='12', micro='1.post2')
|
||||
version_info = VersionInfo(major='2022', minor='12', micro='1.post3')
|
||||
|
||||
@@ -111,6 +111,6 @@ class ServiceProviderABC(ABC):
|
||||
raise Exception(f'{cls.__name__} not build!')
|
||||
|
||||
injection = [x for x in cls._provider.build_by_signature(signature(f)) if x is not None]
|
||||
return f(*injection, *args, **kwargs)
|
||||
return f(*args, *injection, **kwargs)
|
||||
|
||||
return inner
|
||||
|
||||
Reference in New Issue
Block a user