Файловый менеджер - Редактировать - /home/clickysoft/public_html/assets.clickysoft.net/vendor/laravel/passport/src/Http/Controllers/HandlesOAuthErrors.php
Назад
<?php namespace Laravel\Passport\Http\Controllers; use Laravel\Passport\Exceptions\OAuthServerException; use League\OAuth2\Server\Exception\OAuthServerException as LeagueException; use Nyholm\Psr7\Response as Psr7Response; trait HandlesOAuthErrors { use ConvertsPsrResponses; /** * Perform the given callback with exception handling. * * @param \Closure $callback * @return mixed * * @throws \Laravel\Passport\Exceptions\OAuthServerException */ protected function withErrorHandling($callback) { try { return $callback(); } catch (LeagueException $e) { throw new OAuthServerException( $e, $this->convertResponse($e->generateHttpResponse(new Psr7Response)) ); } } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка