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

@@ -82,7 +82,9 @@ class Form {
*/
protected static function action($action, $https)
{
return HTML::entities(URL::to(((is_null($action)) ? Request::uri()->get() : $action), $https));
$request = IoC::container()->core('uri');
return HTML::entities(URL::to(((is_null($action)) ? $uri->get() : $action), $https));
}
/**