From 9518d1958036e168d40399b01ab3dc45eebc8f52 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Fri, 8 Oct 2021 08:22:36 +0200 Subject: [PATCH] Fixed invalid lines in startup template --- src/cpl_cli/_templates/new/console/source/name/startup.py | 8 +++----- src/cpl_cli/_templates/new/library/source/name/startup.py | 6 ++---- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/cpl_cli/_templates/new/console/source/name/startup.py b/src/cpl_cli/_templates/new/console/source/name/startup.py index 1dcea012..959bc0ce 100644 --- a/src/cpl_cli/_templates/new/console/source/name/startup.py +++ b/src/cpl_cli/_templates/new/console/source/name/startup.py @@ -19,16 +19,14 @@ class StartupTemplate(TemplateFileABC): class Startup(StartupABC): - def __init__(): + def __init__(self): StartupABC.__init__(self) - self._environment = self._configuration.environment - def configure_configuration(self, configuration: ConfigurationABC, environment: ApplicationEnvironment) -> ConfigurationABC: - return self._configuration + return configuration def configure_services(self, services: ServiceCollectionABC, environment: ApplicationEnvironment) -> ServiceProviderABC: - return self._services.build_service_provider() + return services.build_service_provider() """) @property diff --git a/src/cpl_cli/_templates/new/library/source/name/startup.py b/src/cpl_cli/_templates/new/library/source/name/startup.py index 9d336b52..959bc0ce 100644 --- a/src/cpl_cli/_templates/new/library/source/name/startup.py +++ b/src/cpl_cli/_templates/new/library/source/name/startup.py @@ -22,13 +22,11 @@ class StartupTemplate(TemplateFileABC): def __init__(self): StartupABC.__init__(self) - self._environment = self._configuration.environment - def configure_configuration(self, configuration: ConfigurationABC, environment: ApplicationEnvironment) -> ConfigurationABC: - return self._configuration + return configuration def configure_services(self, services: ServiceCollectionABC, environment: ApplicationEnvironment) -> ServiceProviderABC: - return self._services.build_service_provider() + return services.build_service_provider() """) @property