mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge pull request #1677 from dereuromark/master-cleanup
App::import to App::uses
This commit is contained in:
commit
1c148c28f0
3 changed files with 3 additions and 4 deletions
|
@ -279,7 +279,7 @@ class TestTask extends BakeTask {
|
|||
*/
|
||||
public function buildTestSubject($type, $class) {
|
||||
ClassRegistry::flush();
|
||||
App::import($type, $class);
|
||||
App::uses($class, $type);
|
||||
$class = $this->getRealClassName($type, $class);
|
||||
if (strtolower($type) === 'model') {
|
||||
$instance = ClassRegistry::init($class);
|
||||
|
|
|
@ -24,7 +24,6 @@ App::uses('AbstractTransport', 'Network/Email');
|
|||
App::uses('File', 'Utility');
|
||||
App::uses('String', 'Utility');
|
||||
App::uses('View', 'View');
|
||||
App::import('I18n', 'Multibyte');
|
||||
|
||||
/**
|
||||
* Cake e-mail class.
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
App::import('Model', 'ConnectionManager');
|
||||
App::uses('ConnectionManager', 'Model');
|
||||
|
||||
/**
|
||||
* Data Sanitization.
|
||||
|
|
Loading…
Reference in a new issue