Skip to content

Commit 150afbe

Browse files
committed
Refactor application_handler to use DI
1 parent ef3b6ab commit 150afbe

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

archinstall/lib/applications/application_handler.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,3 @@ def install_applications(self, install_session: Installer, app_config: Applicati
4444
install_session,
4545
app_config.firewall_config,
4646
)
47-
48-
49-
application_handler = ApplicationHandler()

archinstall/scripts/guided.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import time
33
from pathlib import Path
44

5-
from archinstall.lib.applications.application_handler import application_handler
5+
from archinstall.lib.applications.application_handler import ApplicationHandler
66
from archinstall.lib.args import arch_config_handler
77
from archinstall.lib.authentication.authentication_handler import AuthenticationHandler
88
from archinstall.lib.configuration import ConfigurationOutput
@@ -55,6 +55,7 @@ def perform_installation(
5555
mountpoint: Path,
5656
mirror_list_handler: MirrorListHandler,
5757
auth_handler: AuthenticationHandler,
58+
application_handler: ApplicationHandler,
5859
) -> None:
5960
"""
6061
Performs the installation steps on a block device.
@@ -224,6 +225,7 @@ def guided() -> None:
224225
arch_config_handler.args.mountpoint,
225226
mirror_list_handler,
226227
AuthenticationHandler(),
228+
ApplicationHandler(),
227229
)
228230

229231

0 commit comments

Comments
 (0)