check24/apitk-deprecation-bundle
@Route/@ApiResource ecosystem), reducing boilerplate for deprecation logic.sensio/framework-extra-bundle or similar).sensio/framework-extra-bundle, nelmio/api-doc-bundle for Swagger).symfony/routing, api-platform/core).Response::header()) as a fallback.nelmio/api-doc-bundle or similar is used.sensio/framework-extra-bundle.@Deprecated annotations.nelmio/api-doc-bundle.@Route, @Get), proceed to step 2.composer require check24/apitk-deprecation-bundle
Add to config/bundles.php (if using Symfony) or register service provider in config/app.php.use Shopping\ApiTKDeprecationBundle\Annotation\Deprecated;
/**
nelmio/api-doc-bundle is configured to read @Deprecated annotations.x-apitk-deprecated-* headers appear in responses.sensio/framework-extra-bundle (v5.2+).nelmio/api-doc-bundle (v3+).Deprecated logic for stricter controls.removedAfter dates).symfony/routing and api-platform/core (if used).@Deprecated annotation usage.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Bundle not loading | Deprecation warnings missing | Fallback to manual header middleware |
| Annotation parser errors | Runtime exceptions | Validate annotations in CI |
| Swagger doc generation fails | Docs show deprecated endpoints | Exclude @Deprecated from docs manually |
| PHP/Symfony version mismatch | Bundle fails to register | Fork and update dependencies |
| Client ignores warnings | Deprecated endpoints remain used | Implement rate-limiting or blocking |
@Deprecated annotation syntax.@Deprecated usage.removedAfter dates)./v2 → /v3 transitions.How can I help you explore Laravel packages today?