Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove more Symfony 4 specific code #443

Merged
merged 3 commits into from Nov 24, 2023
Merged

Conversation

glaubinix
Copy link

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Related tickets missed some places in #441
Documentation if this is a new feature, link to pull request in https://github.com/php-http/documentation that adds relevant documentation
License MIT

What's in this PR?

Remove more Symfony 4 specific code

Why?

Support has been removed #441

To Do

  • Do you want to keep around the httplug.client service? Then I move it to the services.yaml.

} else {
$loader->load('services_legacy_sf4.xml');
}
$loader->load('services_legacy.xml');
Copy link
Collaborator

Choose a reason for hiding this comment

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

we could completely remove the legacy services and mention in the changelog what the new names to use are. or prefer to do that in a separate MR?

Copy link
Author

Choose a reason for hiding this comment

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

Sure, I can do this here. I take it, this means to also remove the service alias in the services.xml?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Psr\Http\Client\ClientInterface should still be autowireable. so i think that should stay.

Copy link
Author

Choose a reason for hiding this comment

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

I think I misunderstood what this when I first adjusted the xml config. Both legacy XML files triggered a deprecation if Http\Client\HttpClient was used. I first read this the wrong way and thought it created a httplug.client alias.

Copy link
Collaborator

@dbu dbu left a comment

Choose a reason for hiding this comment

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

thank you

CHANGELOG.md Outdated Show resolved Hide resolved
@dbu dbu merged commit 8d796dd into php-http:2.x Nov 24, 2023
12 checks passed
@glaubinix glaubinix deleted the more-symfony54 branch November 24, 2023 13:44
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.

None yet

2 participants