Skip to content

Conversation

@aaa2000
Copy link
Contributor

@aaa2000 aaa2000 commented Jan 21, 2026

Q A
Branch? 4.2
Tickets Closes #7627
License MIT

Fix error

Parameter ".json_streamer.lazy_ghosts_dir" not found. It was probably deleted during the compilation of the container. Did you mean this: ".json_streamer.lazy_ghosts_dir.jsonld"? 

@see See the changes on the constructor of Symfony\Component\JsonStreamer\JsonStreamReader symfony/json-streamer@v7.3.0...7.4 and symfony/json-streamer@7.4...v8.0.0

Maybe, it might be better to use the named arguments syntax

...
->arg('$configCacheFactory', ...)
->arg('$lazyGhostsDir', ...)

The CI was in success because the parameter was defined in the test classes. Introduced in the PR https://github.com/api-platform/core/pull/7561/changes#diff-b81a156503a13943176d13d41ac935fc8b403c698bb839a7b0225747776af476R85

@aaa2000 aaa2000 force-pushed the fix-symfony-json-streamer-8.0 branch from 8576f90 to 04bc51b Compare January 21, 2026 16:25
@aaa2000 aaa2000 force-pushed the fix-symfony-json-streamer-8.0 branch 3 times, most recently from 0d48d5c to 2a481f2 Compare January 22, 2026 16:38
@aaa2000 aaa2000 force-pushed the fix-symfony-json-streamer-8.0 branch from 2a481f2 to 33cbb14 Compare January 22, 2026 17:00
@aaa2000 aaa2000 marked this pull request as ready for review January 22, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

symfony/json_streamer 8.0 not working with api-platform and leads to error

1 participant