refactoring testing setup.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user