Repository navigation
Conversation
The helper was deprecated in 4.x because browsers no longer prerender pages for rel=prerender. link($uri, 'prerender') still adds the header entry for anyone who needs it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 of Changes
Removes
PreloadManager::prerender(), which #17 deprecates in 4.x: browsers no longer prerender pages forrel=prerender(Chromium only prefetches the resource and moved prerendering to the Speculation Rules API; Firefox and Safari never supported it).link($uri, 'prerender')still adds the header entry for anyone who needs it.Testing Instructions
php vendor/bin/phpunit(theprerender()test is removed with the method),php vendor/bin/phpstan analyse.Documentation Changes Required
docs/v4-to-v5-update.md(the only 5.x PR in preload, so it creates the guide) with the removal and the replacement.docs/index.mdlinks the new guide. The owner's docs PR [4.x] Update documentation #12 restructuresdocs/index.mdon 4.x-dev, so the entry has to be carried over when 4.x-dev is merged up.docs/classes/PreloadManager.md.Depends on #17. When 4.x-dev is merged into 5.x-dev, check that the
prerender()method, its deprecation note indocs/classes/PreloadManager.mdand theexpectUserDeprecationMessage()intestPrerenderfrom #17 do not come back.symfony/deprecation-contracts, added by #17, can be dropped on 5.x if no other deprecation remains.🤖 Generated with Claude Code