mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
App::import to App::uses
This commit is contained in:
parent
c71392716b
commit
0ae69aace9
3 changed files with 3 additions and 4 deletions
|
@ -279,7 +279,7 @@ class TestTask extends BakeTask {
|
||||||
*/
|
*/
|
||||||
public function buildTestSubject($type, $class) {
|
public function buildTestSubject($type, $class) {
|
||||||
ClassRegistry::flush();
|
ClassRegistry::flush();
|
||||||
App::import($type, $class);
|
App::uses($class, $type);
|
||||||
$class = $this->getRealClassName($type, $class);
|
$class = $this->getRealClassName($type, $class);
|
||||||
if (strtolower($type) === 'model') {
|
if (strtolower($type) === 'model') {
|
||||||
$instance = ClassRegistry::init($class);
|
$instance = ClassRegistry::init($class);
|
||||||
|
|
|
@ -24,7 +24,6 @@ App::uses('AbstractTransport', 'Network/Email');
|
||||||
App::uses('File', 'Utility');
|
App::uses('File', 'Utility');
|
||||||
App::uses('String', 'Utility');
|
App::uses('String', 'Utility');
|
||||||
App::uses('View', 'View');
|
App::uses('View', 'View');
|
||||||
App::import('I18n', 'Multibyte');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cake e-mail class.
|
* Cake e-mail class.
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
App::import('Model', 'ConnectionManager');
|
App::uses('ConnectionManager', 'Model');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Data Sanitization.
|
* Data Sanitization.
|
||||||
|
|
Loading…
Add table
Reference in a new issue