refactoring for dependency injection.

This commit is contained in:
Taylor Otwell
2011-08-29 22:02:32 -05:00
parent 8229891d26
commit f113b5c829
11 changed files with 23 additions and 153 deletions

View File

@@ -17,9 +17,7 @@ abstract class Controller {
*/
public function __get($key)
{
$application = IoC::resolve('laravel.application');
return $application->$key;
return IoC::resolve('laravel.application')->$key;
}
/**