Commit d0c343a
docs(web/blog): use local.di (not top-level var) in from-wirebox-to-wheelsdi services.cfm example (#3235)
The `config/services.cfm` snippet used a top-level `var di = injector();`. A bare
top-level `var` statement compile-errors on Adobe CF (#3063) — `config/services.cfm`
is an included template, not a function body, so `var` isn't valid there on Adobe.
Lucee/BoxLang tolerate it, but the example as shipped breaks for Adobe readers who
copy it. Switch to the cross-engine-safe `local.di` form (matching the DI guide and
CLAUDE.md), and update the chained references to `local.di.*`.
Signed-off-by: Peter Amiri <petera@pai.com>
Co-authored-by: Peter Amiri <petera@pai.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 61c594e commit d0c343a
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
0 commit comments