Commit 7e3d7d6
committed
Allow custom Quoter to be injected into CompositeHandler::create()
Previously, `create()` hardcoded `CodeQuoter` internally, giving callers
no way to influence how values are quoted without rebuilding the entire
handler chain manually. Now it accepts an optional `Quoter` parameter,
defaulting to `CodeQuoter` to preserve backward compatibility.
This makes the factory method more extensible: users can pass whichever
`Quoter` implementation works best for their context — for example, a
plain quoter that omits code formatting, or a custom one with different
length limits — without having to bypass `create()` entirely.
Assisted-by: Claude Code (claude-sonnet-4-6)1 parent e82cd44 commit 7e3d7d6
2 files changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
| 35 | + | |
35 | 36 | | |
36 | | - | |
37 | | - | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
78 | 88 | | |
0 commit comments