more refactoring and dependency injection.

This commit is contained in:
Taylor Otwell
2011-09-06 22:04:52 -05:00
parent 0c2834fed1
commit 7eef380d8a
39 changed files with 560 additions and 501 deletions

View File

@@ -1,11 +1,5 @@
<?php namespace Laravel;
class Response_Facade extends Facade {
public static $resolve = 'response';
}
class Response_Factory {
/**
@@ -230,4 +224,12 @@ class Response {
return $this;
}
/**
* Magic Method for calling methods on the response factory instance.
*/
public static function __callStatic($method, $parameters)
{
return call_user_func_array(array(IoC::container()->resolve('laravel.response'), $method), $parameters);
}
}