Skip to content

Add configurable Request class suffix - #37

Open
tomasvanrijsse wants to merge 1 commit into
crescat-io:masterfrom
Timatic:request-class-suffix
Open

Add configurable Request class suffix#37
tomasvanrijsse wants to merge 1 commit into
crescat-io:masterfrom
Timatic:request-class-suffix

Conversation

@tomasvanrijsse

Copy link
Copy Markdown
Contributor

Add suffixRequestClasses config option to optionally append Request suffix to request class names. This improves clarity when request classes might conflict with other classes or when a more explicit naming convention is preferred.

I think send(request) makes more sense and I've always had my Saloon SDKs with the Request suffix.

-$connector->send(new UserIndex);
+$connector->send(new UserIndexRequest);

Add suffixRequestClasses config option to optionally append Request
suffix to request class names. This improves clarity when request classes
might conflict with other classes or when a more explicit naming convention
is preferred.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
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.

1 participant