Repository navigation
Rename response_on_sunset to gone_after_sunset - #12
Merged
Merged
Conversation
The old name was misleading: `response_on_sunset: true` sounded like the endpoint would keep responding, when it actually returns 410 Gone. The new name `gone_after_sunset` makes the behavior explicit. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Renames the bundle configuration option controlling post-sunset behavior from response_on_sunset to gone_after_sunset to better reflect that the endpoint returns 410 Gone after the sunset date.
Changes:
- Renamed the config option in the Symfony config definition and bundle wiring.
- Renamed the corresponding listener constructor property/usage.
- Updated tests and documentation to use the new option name.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
tests/EventListener/DeprecationHeaderListenerTest.php |
Renames test methods to match the new terminology. |
src/EventListener/DeprecationHeaderListener.php |
Renames the injected flag/property used to decide whether to return 410 after sunset. |
src/ApiDeprecationBundle.php |
Switches service wiring to read $config['gone_after_sunset']. |
config/definition.php |
Renames the exposed configuration key to gone_after_sunset. |
README.md |
Updates configuration examples and behavior docs to the new key. |
CLAUDE.md |
Updates internal contributor guidance to the new key. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Comment on lines
+13
to
16
| ->booleanNode('gone_after_sunset') | ||
| ->defaultTrue() | ||
| ->info('Return 410 Gone after the sunset date has passed') | ||
| ->end() |
|
|
||
| If `response_on_sunset` is enabled (default), the endpoint permanently returns `410 Gone` once the sunset date has passed. | ||
| If `gone_after_sunset` is enabled (default), the endpoint permanently returns `410 Gone` once the sunset date has passed. | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
response_on_sunset→gone_after_sunsetfor clarity: the old name was misleading (truesounded like the endpoint keeps responding, when it actually returns 410 Gone)Test plan
make qapasses (tests, PHPStan, Infection)🤖 Generated with Claude Code