mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
More replacements to get class loaded using the new file scheme
This commit is contained in:
parent
73ad5385eb
commit
b4387d2f51
12 changed files with 12 additions and 27 deletions
|
@ -20,9 +20,9 @@
|
|||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
||||
*/
|
||||
|
||||
App::uses('Router', 'Core');
|
||||
App::uses('Router', 'Routing');
|
||||
App::uses('Security', 'Core');
|
||||
App::uses('Debugger', 'Core');
|
||||
App::uses('Debugger', 'Utility');
|
||||
|
||||
/**
|
||||
* Authentication control component class
|
||||
|
|
|
@ -629,9 +629,7 @@ class App {
|
|||
}
|
||||
|
||||
if (!isset(self::$__paths[$path])) {
|
||||
if (!class_exists('Folder')) {
|
||||
require LIBS . 'folder.php';
|
||||
}
|
||||
App::uses('Folder', 'Utility');
|
||||
$Folder = new Folder();
|
||||
$directories = $Folder->tree($path, array('.svn', '.git', 'CVS', 'tests', 'templates'), 'dir');
|
||||
sort($directories);
|
||||
|
@ -865,9 +863,7 @@ class App {
|
|||
* @return array List of directories or files in directory
|
||||
*/
|
||||
private static function __list($path, $suffix = false, $extension = false) {
|
||||
if (!class_exists('Folder')) {
|
||||
require LIBS . 'folder.php';
|
||||
}
|
||||
App::uses('Folder', 'Utility');
|
||||
$items = array();
|
||||
$Folder = new Folder($path);
|
||||
$contents = $Folder->read(false, true);
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
||||
*/
|
||||
|
||||
App::uses('Debugger', 'Utility');
|
||||
|
||||
/**
|
||||
*
|
||||
* Error Handler provides basic error and exception handling for your application. It captures and
|
||||
|
@ -143,9 +145,6 @@ class ErrorHandler {
|
|||
|
||||
$debug = Configure::read('debug');
|
||||
if ($debug) {
|
||||
if (!class_exists('Debugger')) {
|
||||
require LIBS . 'debugger.php';
|
||||
}
|
||||
$data = array(
|
||||
'level' => $log,
|
||||
'code' => $code,
|
||||
|
@ -164,9 +163,6 @@ class ErrorHandler {
|
|||
}
|
||||
$message = $error . ' (' . $code . '): ' . $description . ' in [' . $file . ', line ' . $line . ']';
|
||||
if (!empty($errorConfig['trace'])) {
|
||||
if (!class_exists('Debugger')) {
|
||||
require LIBS . 'debugger.php';
|
||||
}
|
||||
$trace = Debugger::trace(array('start' => 1, 'format' => 'log'));
|
||||
$message .= "\nTrace:\n" . $trace . "\n";
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@ App::uses('CakeResponse', 'Network');
|
|||
App::uses('Controller', 'Controller');
|
||||
App::uses('Scaffold', 'Controller');
|
||||
App::uses('View', 'View');
|
||||
App::uses('Debugger', 'Core');
|
||||
App::uses('Debugger', 'Utility');
|
||||
|
||||
/**
|
||||
* Dispatcher converts Requests into controller actions. It uses the dispatched Request
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
||||
*/
|
||||
|
||||
App::uses('CakeRequest', 'Core');
|
||||
App::uses('CakeRoute', 'Core');
|
||||
App::uses('CakeRequest', 'Network');
|
||||
App::uses('CakeRoute', 'Routing/Route');
|
||||
|
||||
/**
|
||||
* Parses the request URL into controller, action, and parameters.
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
* Included libraries.
|
||||
*
|
||||
*/
|
||||
App::uses('CakeLog', 'Core');
|
||||
App::uses('String', 'Core');
|
||||
App::uses('CakeLog', 'Log');
|
||||
App::uses('String', 'Utility');
|
||||
|
||||
/**
|
||||
* Provide custom logging and error handling.
|
|
@ -225,14 +225,7 @@ require LIBS . 'Error' . DS . 'exceptions.php';
|
|||
App::uses('ErrorHandler', 'Error');
|
||||
App::uses('Configure', 'Core');
|
||||
App::uses('Cache', 'Cache');
|
||||
|
||||
|
||||
|
||||
//require LIBS . 'object.php';
|
||||
//require LIBS . 'configure.php';
|
||||
//require LIBS . 'set.php';
|
||||
//require LIBS . 'cache.php';
|
||||
//require LIBS . 'error' . DS . 'error_handler.php';
|
||||
App::uses('Object', 'Core');
|
||||
|
||||
Configure::bootstrap(isset($boot) ? $boot : true);
|
||||
|
||||
|
|
Loading…
Reference in a new issue