Move registration of CakePlugin.

Move the uses() call to Cake/bootstrap.php
CakePlugin is used by App, and should be loaded along with
other core classes like Configure and Cache.

Fixes #2147
This commit is contained in:
mark_story 2011-10-23 13:54:13 -04:00
parent e457c14dec
commit 205d75587c
2 changed files with 1 additions and 1 deletions

View file

@ -739,7 +739,6 @@ class App {
self::$_map += (array)Cache::read('file_map', '_cake_core_');
self::$_objects += (array)Cache::read('object_map', '_cake_core_');
register_shutdown_function(array('App', 'shutdown'));
self::uses('CakePlugin', 'Core');
}
/**

View file

@ -130,6 +130,7 @@ spl_autoload_register(array('App', 'load'));
App::uses('ErrorHandler', 'Error');
App::uses('Configure', 'Core');
App::uses('CakePlugin', 'Core');
App::uses('Cache', 'Cache');
App::uses('Object', 'Core');
App::$bootstrapping = true;