Skip to content

[HttpClient] update configuration php format#22150

Merged
javiereguiluz merged 1 commit intosymfony:8.1from
MrYamous:8.1
Mar 13, 2026
Merged

[HttpClient] update configuration php format#22150
javiereguiluz merged 1 commit intosymfony:8.1from
MrYamous:8.1

Conversation

@MrYamous
Copy link
Contributor

@MrYamous MrYamous commented Mar 12, 2026

From a old format usage spotted by Nicolas in #22117 (comment)

And I updated another example from the same page

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the HTTP Client documentation to use the current PHP configuration example format (matching the newer App::config([...]) style) for the caching examples.

Changes:

  • Replaced the FrameworkConfig/ConfigBuilder-style PHP config example with namespace Symfony\Component\DependencyInjection\Loader\Configurator; + return App::config([...]); for the caching + cache pool example.
  • Updated the max_ttl PHP config example to the same App::config([...]) format.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@javiereguiluz
Copy link
Member

Nice! Thanks Matthieu.

@javiereguiluz javiereguiluz merged commit 025be9b into symfony:8.1 Mar 13, 2026
3 checks passed
@MrYamous MrYamous deleted the 8.1 branch March 13, 2026 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants