Skip to content

fix: keep the host application's API Platform resource paths [*] - #4

Merged
schmunk42 merged 1 commit into
masterfrom
fix/api-platform-mapping-paths
Dec 2, 2026
Merged

schmunk42 merged 1 commit into
masterfrom
fix/api-platform-mapping-paths

Conversation

@schmunk42

Copy link
Copy Markdown
Member

The bundle prepended its entity directory to api_platform.mapping.paths. API Platform adds the application's default resource directories (src/Entity, src/ApiResource, config/api_platform) only while that list is empty, so a host application relying on those defaults lost all of its own API Platform resources: their routes answered 404.

  • Remove the prepend; API Platform discovers src/Entity of every registered bundle by itself.
  • Unit test: the bundle prepends no api_platform configuration.
  • The test kernel's project directory lies outside the bundle, so the integration tests prove discovery through the registered bundle.
  • README and changelog section 0.1.2. No action is needed on upgrade.

🤖 Generated with Claude Code

The bundle prepended its entity directory to api_platform.mapping.paths.
API Platform adds the application's default resource directories only
while that list is empty, so an application relying on the defaults lost
all of its own resources. API Platform discovers src/Entity of a
registered bundle by itself, so the prepend is gone. The test kernel's
project directory now lies outside the bundle, so the tests prove that
discovery. Changelog section 0.1.2.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@schmunk42
schmunk42 merged commit c386690 into master Dec 2, 2026
2 checks passed
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.

1 participant