Файловый менеджер - Редактировать - /home/tuudkjt/globeasy/wp-content/plugins/reviewx/vendor/nahid/apiz/src/HttpExceptionReceiver.php
Назад
<?php namespace Rvx\Apiz; use Rvx\Apiz\Http\Response; class HttpExceptionReceiver { protected $exceptions; protected $statusCode; public function __construct(Response $response, $exceptions = []) { $this->statusCode = (int) $response->getStatusCode(); $this->exceptions = $exceptions; $this->throwExceptions(); } protected function throwExceptions() { if (\array_key_exists($this->statusCode, $this->exceptions)) { throw new $this->exceptions[$this->statusCode](); } } }
| ver. 1.6 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка