Fixed invalid lines in startup template

This commit is contained in:
Sven Heidemann 2021-10-08 08:22:36 +02:00
parent adf95faaf8
commit 9518d19580
2 changed files with 5 additions and 9 deletions

View File

@ -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

View File

@ -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