refactoring various classes.

This commit is contained in:
Taylor Otwell
2011-11-22 18:00:17 -06:00
parent 246434f4c7
commit 5f348b2c6e
14 changed files with 373 additions and 210 deletions

View File

@@ -5,7 +5,7 @@
* configuration class, and the class auto-loader. Once this file
* has run, the framework is essentially ready for use.
*/
require 'bootstrap/core.php';
require 'core.php';
/**
* Register the default timezone for the application. This will be
@@ -123,11 +123,6 @@ ini_set('display_errors', 'Off');
*/
if (Config::$items['session']['driver'] !== '')
{
require SYS_PATH.'ioc'.EXT;
require SYS_PATH.'session/payload'.EXT;
require SYS_PATH.'session/drivers/driver'.EXT;
require SYS_PATH.'session/drivers/factory'.EXT;
$driver = Session\Drivers\Factory::make(Config::$items['session']['driver']);
$session = new Session\Payload($driver);
@@ -137,20 +132,6 @@ if (Config::$items['session']['driver'] !== '')
IoC::instance('laravel.session', $session);
}
/**
* Manually load some core classes that are used on every request so
* we can avoid using the loader for these classes. This saves us
* some overhead on each request.
*/
require SYS_PATH.'uri'.EXT;
require SYS_PATH.'input'.EXT;
require SYS_PATH.'request'.EXT;
require SYS_PATH.'response'.EXT;
require SYS_PATH.'routing/route'.EXT;
require SYS_PATH.'routing/router'.EXT;
require SYS_PATH.'routing/loader'.EXT;
require SYS_PATH.'routing/filter'.EXT;
/**
* Gather the input to the application based on the current request.
* The input will be gathered based on the current request method and