Code refactoring p.1

This commit is contained in:
Sven Heidemann 2021-03-27 08:41:33 +01:00
parent 3c0dd00a99
commit 069e44bee6
3 changed files with 3 additions and 4 deletions

View File

@ -1,2 +1,3 @@
- dbContext!!!
- templates for better Di using!
- app-runtime -> app-env

View File

@ -5,7 +5,6 @@ from cpl.application.application_builder_abc import ApplicationBuilderABC
from cpl.application.application_runtime import ApplicationRuntime
from cpl.application.startup_abc import StartupABC
from cpl.configuration import Configuration
from cpl.dependency_injection import ServiceProvider
from cpl.dependency_injection.service_collection import ServiceCollection

View File

@ -82,8 +82,7 @@ class ConfigurationABC(ABC):
pass
@abstractmethod
def get_configuration(self, search_type: Union[str, Type[ConfigurationModelABC]]) -> Union[
str, Callable[ConfigurationModelABC]]:
def get_configuration(self, search_type: Union[str, Type[ConfigurationModelABC]]) -> Union[str, Callable[ConfigurationModelABC]]:
"""
Returns value in configuration by given type
:param search_type: