Skip to content

Rename response_on_sunset to gone_after_sunset - #12

Merged
rflavien merged 1 commit into
mainfrom
rename-gone-after-sunset
Mar 13, 2026
Merged

rflavien merged 1 commit into
mainfrom
rename-gone-after-sunset

Conversation

@rflavien

Copy link
Copy Markdown
Contributor

Summary

  • Rename config option response_on_sunset → gone_after_sunset for clarity: the old name was misleading (true sounded like the endpoint keeps responding, when it actually returns 410 Gone)
  • Update all references across config definition, bundle wiring, listener, tests, and documentation

Test plan

  • make qa passes (tests, PHPStan, Infection)

🤖 Generated with Claude Code

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>
Copilot AI review requested due to automatic review settings March 13, 2026 14:50
@rflavien
rflavien merged commit 7df791c into main Mar 13, 2026
14 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 thread config/definition.php
Comment on lines +13 to 16
->booleanNode('gone_after_sunset')
->defaultTrue()
->info('Return 410 Gone after the sunset date has passed')
->end()
Comment thread README.md

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.

@rflavien
rflavien deleted the rename-gone-after-sunset branch March 13, 2026 14:59
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.

2 participants