Slide 12
Slide 12 text
namespace Aura\Web;
class WebFactory {
public function newRequest()
{
return new Request(
$this->newRequestClient(),
$this->newRequestContent(),
$this->newRequestGlobals(),
$this->newRequestHeaders(),
$this->newRequestMethod(),
$this->newRequestParams(),
$this->newRequestUrl()
);
}
public function newRequestGlobals()
{
return new Request\Globals(
$this->newRequestCookies(),
$this->newRequestEnv(),
$this->newRequestFiles(),
$this->newRequestPost(),
$this->newRequestQuery(),
$this->newRequestServer()
);
}
}