refactoring some classes.

This commit is contained in:
Taylor Otwell 2011-11-10 20:25:17 -06:00
parent 8ae9324ce3
commit c67a010c5c
3 changed files with 3 additions and 2 deletions

View File

@ -58,7 +58,6 @@
* request rather than parse the keys for every request.
*/
Config::load('application');
Config::load('container');
Config::load('session');
/**

View File

@ -16,6 +16,8 @@ class IoC {
*/
public static function bootstrap()
{
Config::load('container');
static::$container = new Container(Config::$items['container']);
}

View File

@ -90,7 +90,7 @@ public static function to_asset($url, $https = null)
*/
public static function to_route($name, $parameters = array(), $https = false)
{
if ( ! is_null($route = IoC::container()->core('routing.router')->find($name)))
if ( ! is_null($route = IoC::core('routing.router')->find($name)))
{
$uris = explode(', ', key($route));