Refactor application_handler to use DI (#4172)
This commit is contained in:
parent
ef3b6ab853
commit
d7bcd431a7
|
|
@ -44,6 +44,3 @@ class ApplicationHandler:
|
|||
install_session,
|
||||
app_config.firewall_config,
|
||||
)
|
||||
|
||||
|
||||
application_handler = ApplicationHandler()
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import os
|
|||
import time
|
||||
from pathlib import Path
|
||||
|
||||
from archinstall.lib.applications.application_handler import application_handler
|
||||
from archinstall.lib.applications.application_handler import ApplicationHandler
|
||||
from archinstall.lib.args import arch_config_handler
|
||||
from archinstall.lib.authentication.authentication_handler import AuthenticationHandler
|
||||
from archinstall.lib.configuration import ConfigurationOutput
|
||||
|
|
@ -55,6 +55,7 @@ def perform_installation(
|
|||
mountpoint: Path,
|
||||
mirror_list_handler: MirrorListHandler,
|
||||
auth_handler: AuthenticationHandler,
|
||||
application_handler: ApplicationHandler,
|
||||
) -> None:
|
||||
"""
|
||||
Performs the installation steps on a block device.
|
||||
|
|
@ -224,6 +225,7 @@ def guided() -> None:
|
|||
arch_config_handler.args.mountpoint,
|
||||
mirror_list_handler,
|
||||
AuthenticationHandler(),
|
||||
ApplicationHandler(),
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue