mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixing class loading for HttpResponse classes, and making possible to pass plugin HttpResponse classes too
This commit is contained in:
parent
0a1f9d17c3
commit
c83a396eb4
1 changed files with 3 additions and 1 deletions
|
@ -363,7 +363,9 @@ class HttpSocket extends CakeSocket {
|
||||||
$this->disconnect();
|
$this->disconnect();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!App::import('Lib', $this->responseClass)) {
|
list($plugin, $responseClass) = pluginSplit($this->responseClass, true);
|
||||||
|
App::uses($this->responseClass, $plugin . 'Network/Http');
|
||||||
|
if (!class_exists($responseClass)) {
|
||||||
throw new SocketException(__d('cake_dev', 'Class %s not found.', $this->responseClass));
|
throw new SocketException(__d('cake_dev', 'Class %s not found.', $this->responseClass));
|
||||||
}
|
}
|
||||||
$responseClass = $this->responseClass;
|
$responseClass = $this->responseClass;
|
||||||
|
|
Loading…
Reference in a new issue