Fix E2E scopes response

This commit is contained in:
ErickSkrauch 2024-12-17 23:08:55 +01:00
parent 119a0f8078
commit 05524a4e7c
No known key found for this signature in database
GPG Key ID: 669339FCBB30EE0E

View File

@ -20,7 +20,7 @@ use yii\web\Response;
final class MockDataResponse implements BootstrapInterface { final class MockDataResponse implements BootstrapInterface {
public function bootstrap($app): void { public function bootstrap($app): void {
Event::on(Controller::class, Controller::EVENT_BEFORE_ACTION, Closure::fromCallable([$this, 'beforeAction'])); Event::on(Controller::class, Controller::EVENT_BEFORE_ACTION, $this->beforeAction(...));
} }
private function beforeAction(ActionEvent $event): void { private function beforeAction(ActionEvent $event): void {
@ -108,7 +108,7 @@ final class MockDataResponse implements BootstrapInterface {
'description' => "Some client's description", 'description' => "Some client's description",
], ],
'session' => [ 'session' => [
'scopes' => 'account_info minecraft_server_session', 'scopes' => ['account_info', 'minecraft_server_session'],
], ],
]; ];
} }