public function call($path = '/', $method = 'GET', $parameters = [])
{
$client = static::createClient();
$server = [];
if (!$parameters) {
$parameters = [];
}
if ($this->allCookies) {
foreach ($this->allCookies as $cookie) {
$client->getCookieJar()->set($cookie);
}
}
$client->request($method, $path, $parameters, $files = array(), $server);
$this->allCookies = $client->getCookieJar()->all();
return $client->getInternalResponse()->getContent();
}