Add NostrmarketService to dependency injection container

- Introduce NOSTRMARKET_SERVICE token in the DI container for better service management.
- Update market module to create and register NostrmarketService instance using the new DI pattern.
- Refactor components and composables to inject NostrmarketService via the DI container, enhancing modularity and testability.

These changes improve the architecture by ensuring consistent service injection and eliminating legacy singleton references, aligning with the overall dependency injection strategy.
This commit is contained in:
padreug 2025-09-07 01:31:24 +02:00
parent 31a9c0a9dc
commit 14d6bc6329
6 changed files with 26 additions and 36 deletions

View file

@ -137,6 +137,9 @@ export const SERVICE_TOKENS = {
// Invoice services
INVOICE_SERVICE: Symbol('invoiceService'),
// Nostrmarket services
NOSTRMARKET_SERVICE: Symbol('nostrmarketService'),
} as const
// Type-safe injection helpers