refactoring for better dependency injection on a few classes.

This commit is contained in:
Taylor Otwell
2011-10-29 22:24:32 -05:00
parent faaea17fd3
commit 932a70b6cf
13 changed files with 248 additions and 105 deletions

View File

@@ -261,7 +261,9 @@ class Response {
$this->header('Content-Type', 'text/html; charset='.Config::$items['application']['encoding']);
}
header(Request::protocol().' '.$this->status.' '.$this->statuses[$this->status]);
$request = IoC::container()->core('request');
header($request->protocol().' '.$this->status.' '.$this->statuses[$this->status]);
foreach ($this->headers as $name => $value)
{