linkd.context

class Context

Type representing a dependency injection context. Used for labelling containers so that they can be accessed using method injection if required. You can create and use your own contexts by creating an instance of this type.

alias of str

final class Contexts[source]

Collection of the dependency injection context values linkd uses.

DEFAULT = 'linkd.contexts.default'

The base DI context - ALL other contexts are built with this as the parent.

class DefaultContainer

Injectable type representing the dependency container for the default context.

alias of Container