| 1234567891011121314151617181920212223 |
- # -*- coding: utf-8 -*-
- """
- Service-Scopes für Dependency Injection.
- Bietet verschiedene Lebenszyklus-Strategien für Services:
- - Singleton: Eine Instanz pro Container
- - Transient: Neue Instanz pro Abruf
- - Scoped: Eine Instanz pro Request/Scope
- """
- from trixy_core.service.scopes.scope import ServiceScope, ScopeContext
- from trixy_core.service.scopes.singleton import SingletonScope
- from trixy_core.service.scopes.transient import TransientScope
- from trixy_core.service.scopes.scoped import RequestScope, ScopedScope
- __all__ = [
- "ServiceScope",
- "ScopeContext",
- "SingletonScope",
- "TransientScope",
- "RequestScope",
- "ScopedScope",
- ]
|