public function __construct($client, $appInstance = null)
{
$this->client = $client;
$this->attrs = new \stdClass();
$this->attrs->get =& $client->get;
$this->attrs->cookie =& $client->cookie;
$this->attrs->server =& $client->server;
$this->attrs->session = null;
if ($appInstance) {
$this->appInstance = $appInstance;
}
}