removed application and resolver classes. added phpunit tests.

This commit is contained in:
Taylor Otwell
2011-09-04 23:19:14 -05:00
parent d35e2abd77
commit cb8e8194ce
14 changed files with 146 additions and 88 deletions

View File

@@ -1,6 +1,13 @@
<?php namespace Laravel;
abstract class Controller extends Resolver {
abstract class Controller {
/**
* The IoC container instance.
*
* @var Container
*/
public $container;
/**
* A stub method that will be called before every request to the controller.
@@ -21,7 +28,7 @@ abstract class Controller extends Resolver {
*/
public function __call($method, $parameters)
{
return $this->response->error('404');
return $this->container->resolve('laravel.response')->error('404');
}
}