From 34957a135c25318668e50418cf10a9ced44d742c Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Sun, 15 Sep 2024 20:05:18 +0200 Subject: [PATCH] add autowiring alias --- CHANGELOG.md | 1 + src/Resources/config/mock-client.xml | 1 + src/Resources/config/services.xml | 11 +++++++++++ 3 files changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd0d7410..725b740f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ The change log describes what is "Added", "Removed", "Changed" or "Fixed" betwee - Removed the `Http\Client\HttpClient` alias use the `Psr\Http\Client\ClientInterface` typehint in your services for autowiring. - Changed classes marked as `@final` to be actually `final`. If you extended any of those, instead implement interfaces or decorate the class rather than extending it. Open an issue if you think a class needs to be made non-final to discuss what we should do. - Added return type declaration to `Http\HttplugBundle\ClientFactory\ClientFactory::createClient` +- Added interface name alias for the `Http\Mock\Client` and all PSR17 factories to help with autowiring. # Version 1 diff --git a/src/Resources/config/mock-client.xml b/src/Resources/config/mock-client.xml index 81d714b0..5a5e2640 100644 --- a/src/Resources/config/mock-client.xml +++ b/src/Resources/config/mock-client.xml @@ -5,6 +5,7 @@ + diff --git a/src/Resources/config/services.xml b/src/Resources/config/services.xml index 70e40812..c0db9ef5 100644 --- a/src/Resources/config/services.xml +++ b/src/Resources/config/services.xml @@ -41,21 +41,32 @@ + + + + + + + + + + +