From 05524a4e7c1934432be4fbf7cc8b9f0ab282b75f Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Tue, 17 Dec 2024 23:08:55 +0100 Subject: [PATCH] Fix E2E scopes response --- api/eventListeners/MockDataResponse.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/eventListeners/MockDataResponse.php b/api/eventListeners/MockDataResponse.php index d1218e1..16346b2 100644 --- a/api/eventListeners/MockDataResponse.php +++ b/api/eventListeners/MockDataResponse.php @@ -20,7 +20,7 @@ use yii\web\Response; final class MockDataResponse implements BootstrapInterface { 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 { @@ -108,7 +108,7 @@ final class MockDataResponse implements BootstrapInterface { 'description' => "Some client's description", ], 'session' => [ - 'scopes' => 'account_info minecraft_server_session', + 'scopes' => ['account_info', 'minecraft_server_session'], ], ]; }