-
Notifications
You must be signed in to change notification settings - Fork 50
Add BaseUriPlugin support. ISSUE-235 #240
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
Changes from 2 commits
c51720a
f7aa143
d44c8d5
601953c
b1257a0
75ab4b3
e22007b
cbde5ea
3b3629c
45380b2
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 |
---|---|---|
|
@@ -203,6 +203,13 @@ private function configurePluginByName($name, Definition $definition, array $con | |
$definition->replaceArgument(1, [ | ||
'replace' => $config['replace'], | ||
]); | ||
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. missing break 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. you still need to add a 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. @dbu I fixed all review, can you please review my PR? |
||
case 'base_uri': | ||
$baseService = $serviceId.'.base_uri'; | ||
$this->createUri($container, $baseService, $config['uri']); | ||
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. can we s/$baseService/$baseUriService/ and refactor the section above (add_host) to call its variable s/$uriService/$hostUriService/? i would prefer consistent naming and being specific helps here (otherwise we have twice $uriService which is confusing too) |
||
$definition->replaceArgument(0, new Reference($uriService)); | ||
$definition->replaceArgument(1, [ | ||
'replace' => $config['replace'], | ||
]); | ||
|
||
break; | ||
case 'header_append': | ||
|
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 sorry, you did add to the changelog. however, 1.8 has meanwhile been released. please rebase on master and then move this to a new section for 1.9. lets say something like "Configure the BaseUriPlugin per client, under the
base_uri
configuration key."