mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fixing the Sell tests
This commit is contained in:
parent
fd8a7ed6d6
commit
8442d93d9e
1 changed files with 1 additions and 4 deletions
|
@ -22,6 +22,7 @@ App::uses('ConsoleOutput', 'Console');
|
|||
App::uses('ConsoleInput', 'Console');
|
||||
App::uses('ConsoleInputSubcommand', 'Console');
|
||||
App::uses('ConsoleOptionParser', 'Console');
|
||||
App::uses('File', 'Utility');
|
||||
|
||||
/**
|
||||
* Base class for command-line utilities for automating programmer chores.
|
||||
|
@ -609,10 +610,6 @@ class Shell extends Object {
|
|||
$this->out(__('Creating file %s', $path));
|
||||
}
|
||||
|
||||
if (!class_exists('File')) {
|
||||
require LIBS . 'file.php';
|
||||
}
|
||||
|
||||
if ($File = new File($path, true)) {
|
||||
$data = $File->prepare($contents);
|
||||
$File->write($data);
|
||||
|
|
Loading…
Add table
Reference in a new issue