Skip to content

WIP: add response with request - #6

Closed
Wulfheart wants to merge 3 commits into
saloonphp:mainfrom
Wulfheart:feature-add-response-with-request
Closed

WIP: add response with request#6
Wulfheart wants to merge 3 commits into
saloonphp:mainfrom
Wulfheart:feature-add-response-with-request

Conversation

@Wulfheart

Copy link
Copy Markdown
Contributor

Would close #3.
However, this is not as trivial as I previously thought.
@Sammyjo20 do you know any way how I could get the full namespace and class name of the newly generated response?

@Sammyjo20

Copy link
Copy Markdown
Member

Maybe we assume the base namespace is in Http/Integrations? If an integration flag is specified, we can assume it is Http/Integrations/Integration1/Responses

@Sammyjo20

Sammyjo20 commented Jan 29, 2022

Copy link
Copy Markdown
Member

Otherwise It could accept a full namespace?

Once we figure this out, I just thought it could be cool if you could specify a connector as well as a response.

@Wulfheart

Copy link
Copy Markdown
Contributor Author

Ok, so what is the way forward now?

@Sammyjo20

Copy link
Copy Markdown
Member

Thank you for making this PR, but I think we should revisit this another time. It's definitely useful but I'd like to create a PR in the future that adds a couple of flags to the request:

--connector=NameOfConnector (assumes in the Http/Integrations folder)
--response=MyResponse (assumes in Http/Integrations/Responses folder)

@Sammyjo20 Sammyjo20 closed this Apr 16, 2022
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