Skip to content

[13.x] Add static setter for authorizationServerResponseType#1867

Merged
taylorotwell merged 2 commits intolaravel:13.xfrom
RSpeekenbrink:use-response-type
Nov 2, 2025
Merged

[13.x] Add static setter for authorizationServerResponseType#1867
taylorotwell merged 2 commits intolaravel:13.xfrom
RSpeekenbrink:use-response-type

Conversation

@RSpeekenbrink
Copy link
Contributor

This PR adds a static setter for $authorizationServerResponseType in Passport.php to match other setters like useDeviceCodeModel().

This makes it more readable when wanting to override the default ResponseType, because it is in line with other setters.. i.e.;

$responseType = new BearerTokenResponseWithExtras();

// Only way currently
Passport::$authorizationServerResponseType = $responseType;

// New way
Passport::useAuthorizationServerResponseType($responseType);

This also makes it clearer that the ResponseType actually can be set and 'overwritten'.

@taylorotwell taylorotwell merged commit 10423e2 into laravel:13.x Nov 2, 2025
8 checks passed
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