set(BookmarkRepository::class, static fn (): BookmarkRepository => new BookmarkRepository()); $container->set(BookmarkGroupRepository::class, static fn (): BookmarkGroupRepository => new BookmarkGroupRepository()); $container->set(BookmarkNavigationRepository::class, static fn (): BookmarkNavigationRepository => new BookmarkNavigationRepository()); $container->set(BookmarkService::class, static fn (AppContainer $c): BookmarkService => new BookmarkService( $c->get(BookmarkRepository::class), $c->get(BookmarkGroupRepository::class), $c->get(BookmarkNavigationRepository::class) )); } }