-
Notifications
You must be signed in to change notification settings - Fork 84
merge 2.x to 3.x #649
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
merge 2.x to 3.x #649
Changes from 2 commits
40a2451
b5f4445
c1b8644
f117fe9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
public="true"> | ||
<argument type="service" id="fos_http_cache.proxy_client.varnish.http_dispatcher"/> | ||
<argument>%fos_http_cache.proxy_client.varnish.options%</argument> | ||
<argument /> <!-- request factory --> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could use a new Symfony 5.1 feature here: https://symfony.com/blog/new-in-symfony-5-1-abstract-service-arguments I don't know what your strategy with this this. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah right, that is a thing now. but as |
||
</service> | ||
</services> | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is different for
FOSHttpCache
v3
(it changed toPsr\Http\Message\RequestFactoryInterface
) butv3
of the bundle supportsv2
andv3
of the lib. How do we properly document that?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See
v2
: https://github.com/FriendsOfSymfony/FOSHttpCache/blob/2.x/src/ProxyClient/HttpProxyClient.php#L59vs
v3
: https://github.com/FriendsOfSymfony/FOSHttpCache/blob/3.x/src/ProxyClient/HttpProxyClient.php#L51There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point. i actually don't see value in keeping to support FOSHttpCache 2.x with the 3.x bundle. both have the same minimum PHP version, so there is no good argument to use different major versions.
i will adjust accordingly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, and we also added a psr-17 stream factory optional argument. for consistency we should support that as well.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I create a PR for that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FriendsOfSymfony/FOSHttpCache#595 for improving the phpdoc vor FOSHttpCache 3.x
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks. i already committed it in this branch :-D