Commit fa8d6ab
docs(web/blog): use local.di (not top-level var) in from-wirebox-to-wheelsdi services.cfm example
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.*`.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Peter Amiri <petera@pai.com>1 parent eb73cb6 commit fa8d6ab
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