added lib class property for proper code-completion
This commit is contained in:
parent
762d1652ee
commit
cd9b522bfa
@ -89,11 +89,10 @@ class AsynchronousFileReader {
|
|||||||
->set(CURLOPT_RETURNTRANSFER, true);
|
->set(CURLOPT_RETURNTRANSFER, true);
|
||||||
|
|
||||||
$request->addListener('complete', function (Event $event) use (&$function) {
|
$request->addListener('complete', function (Event $event) use (&$function) {
|
||||||
/** @var Response $response */
|
|
||||||
$response = $event->response;
|
$response = $event->response;
|
||||||
|
|
||||||
$error = "";
|
$error = null;
|
||||||
$content = "";
|
$content = null;
|
||||||
if ($response->hasError()) {
|
if ($response->hasError()) {
|
||||||
$error = $response->getError()->getMessage();
|
$error = $response->getError()->getMessage();
|
||||||
} else {
|
} else {
|
||||||
|
@ -5,4 +5,6 @@ use Symfony\Component\EventDispatcher\Event as SymfonyEvent;
|
|||||||
|
|
||||||
class Event extends SymfonyEvent
|
class Event extends SymfonyEvent
|
||||||
{
|
{
|
||||||
|
/** @var Response $response */
|
||||||
|
public $response = null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user