Skip to content

Utils

configure_dependencies(args, container)

Configures dependencies required for the application runtime.

This function ensures that critical services are properly initialised in the dependency container based on the provided arguments.

An important behaviour is that only the dependencies required by a given command will be injected into the dependency container.

Parameters:

Name Type Description Default
args Namespace

The parsed command-line arguments that determine the configuration flow.

required
container Container

A dependency injection container which holds the services required by the application.

required

Raises:

Type Description
RAConfigError

exception raised for invalid sub-command