Skip to content

Commit e195dda

Browse files
committed
docs: update service locator registration method name from SetCustomImplementation to Register
1 parent 776aeb9 commit e195dda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/v6_NEW_UI_CHANGES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ string mcpServerPath = MCPServiceLocator.Paths.GetMcpServerPath();
110110
**Benefits:**
111111
- No constructor dependencies (easy to use anywhere)
112112
- Lazy initialization (services created only when needed)
113-
- Testable (supports custom implementations via `SetCustomImplementation()`)
113+
- Testable (supports custom implementations via `Register()`)
114114

115115
---
116116

@@ -268,7 +268,7 @@ var paths = MCPServiceLocator.Paths;
268268
```csharp
269269
// In test setup
270270
var mockBridge = new MockBridgeService();
271-
MCPServiceLocator.SetCustomBridgeService(mockBridge);
271+
MCPServiceLocator.Register(mockBridge);
272272

273273
// Services are now testable without Unity dependencies
274274
```

0 commit comments

Comments
 (0)