refactoring the view class.

This commit is contained in:
Taylor Otwell
2011-09-25 22:13:43 -05:00
parent 886a6f4fac
commit bd4fe8838c
4 changed files with 74 additions and 79 deletions

View File

@@ -133,7 +133,7 @@ class Response {
*/
public static function view($view, $data = array())
{
return new static(View::make($view, $data));
return new static(IoC::container()->resolve('laravel.view')->make($view, $data));
}
/**
@@ -153,7 +153,7 @@ class Response {
*/
public static function with($name, $data = array())
{
return new static(View::of($name, $data));
return new static(IoC::container()->resolve('laravel.view')->of($name, $data));
}
/**
@@ -177,7 +177,7 @@ class Response {
*/
public static function error($code, $data = array())
{
return new static(View::make('error/'.$code, $data), $code);
return new static(IoC::container()->resolve('laravel.view')->make('error/'.$code, $data), $code);
}
/**