diff --git a/application/Espo/EntryPoints/OauthCallback.php b/application/Espo/EntryPoints/OauthCallback.php index c7bea329eb..927d0ebd05 100644 --- a/application/Espo/EntryPoints/OauthCallback.php +++ b/application/Espo/EntryPoints/OauthCallback.php @@ -34,13 +34,15 @@ use Espo\Core\EntryPoints\{ NoAuth, }; +use Espo\Core\Api\Request; + class OauthCallback implements EntryPoint { use NoAuth; - public function run() + public function run(Request $request) { - echo "EspoCRM rocks! If this window is not closed automatically, it's probable that URL you use to access ". + echo "If this window is not closed automatically, it's probable that URL you use to access ". "EspoCRM doesn't match URL specified at Administration > Settings > Site URL."; } } diff --git a/oauth-callback.php b/oauth-callback.php index f245adba8c..4ab361cb21 100644 --- a/oauth-callback.php +++ b/oauth-callback.php @@ -29,5 +29,16 @@ include "bootstrap.php"; -$app = new \Espo\Core\Application(); -$app->runEntryPoint('OauthCallback'); +use Espo\Core\{ + Application, + ApplicationRunners\EntryPoint, +}; + +$app = new Application(); + +$app->run( + EntryPoint::class, + (object) [ + 'entryPoint' => 'oauthCallback', + ] +);