refactoring testing setup.

This commit is contained in:
Taylor Otwell
2011-10-10 22:17:22 -05:00
parent 392caeed91
commit b3c9dc59c0
14 changed files with 49 additions and 467 deletions

View File

@@ -91,6 +91,8 @@ $container = new Container(Config::$items['container']);
IoC::$container = $container;
unset($config, $container);
/**
* Register the application auto-loader. The auto-loader is responsible
* for the lazy-loading of all of the Laravel core classes, as well as

View File

@@ -26,7 +26,7 @@ date_default_timezone_set(Config::$items['application']['timezone']);
*/
if (Config::$items['session']['driver'] !== '')
{
$session = $container->core('session.manager');
$session = IoC::container()->core('session.manager');
Session\Manager::$payload = $session->payload(Config::$items['session']);
}
@@ -82,11 +82,11 @@ Input::set($input);
*/
list($method, $uri) = array(Request::method(), Request::uri());
$route = $container->core('routing.router')->route($method, $uri);
$route = IoC::container()->core('routing.router')->route($method, $uri);
if ( ! is_null($route))
{
$response = $container->core('routing.caller')->call($route);
$response = IoC::container()->core('routing.caller')->call($route);
}
else
{