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

Fix mcustiel/phiremock-client#4 #5

Closed
wants to merge 1 commit into from
Closed

Fix mcustiel/phiremock-client#4 #5

wants to merge 1 commit into from

Conversation

Gounlaf
Copy link
Contributor

@Gounlaf Gounlaf commented Sep 24, 2020

Related to #4 (didn't want to duplicate issue).

Copy link
Owner

@mcustiel mcustiel left a comment

Choose a reason for hiding this comment

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

I get the changes you want to achieve here, but even by doing this laminas won't be removed until next major/version because I want to keep a semantic versioning system. I will take some of these changes for the next major version.

@@ -51,7 +50,9 @@ public function createPhiremockClient(Host $host, Port $port): Phiremock
$this->createRemoteConnection(),
$this->phiremockFactory->createV2UtilsFactory()->createExpectationToArrayConverter(),
$this->phiremockFactory->createV2UtilsFactory()->createArrayToExpectationConverter(),
$this->phiremockFactory->createV2UtilsFactory()->createScenarioStateInfoToArrayConverter()
$this->phiremockFactory->createV2UtilsFactory()->createScenarioStateInfoToArrayConverter(),
$this->phiremockFactory->findRequestFactoryInterface(),
Copy link
Owner

Choose a reason for hiding this comment

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

These methods don't exist in phiremock-common.
I see you created an extended version here, but since server and client use laminas the dependency for http-factory and discovery should probably be there.

{
public function findRequestFactoryInterface(): RequestFactoryInterface
{
if (!class_exists('\Http\Discovery\Psr17FactoryDiscovery', true)) {
Copy link
Owner

Choose a reason for hiding this comment

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

If we require php-http/factory to work. Then it should be in the "require" section, not in the "require-dev"

@mcustiel
Copy link
Owner

In the next weeks I will create a new branch for the next major version and apply the changes there. Thanks for the proposal.

@mcustiel mcustiel closed this Sep 28, 2020
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.

2 participants