mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-22 09:40:41 +08:00
method renamed
This commit is contained in:
@@ -235,7 +235,7 @@ class FixtureController extends \yii\console\controllers\FixtureController
|
|||||||
$fixtures[$i] = $this->generateFixture($template, $i);
|
$fixtures[$i] = $this->generateFixture($template, $i);
|
||||||
}
|
}
|
||||||
|
|
||||||
$content = $this->getExportedFormat($fixtures);
|
$content = $this->exportFixtures($fixtures);
|
||||||
file_put_contents($fixturesPath.'/'.$fixtureFileName, $content);
|
file_put_contents($fixturesPath.'/'.$fixtureFileName, $content);
|
||||||
$this->stdout("Fixture file was generated under: " . realpath($fixturesPath . "/" . $fixtureFileName) . "\n", Console::FG_GREEN);
|
$this->stdout("Fixture file was generated under: " . realpath($fixturesPath . "/" . $fixtureFileName) . "\n", Console::FG_GREEN);
|
||||||
}
|
}
|
||||||
@@ -311,7 +311,7 @@ class FixtureController extends \yii\console\controllers\FixtureController
|
|||||||
* @param type $fixtures
|
* @param type $fixtures
|
||||||
* @return string exported fixtures format
|
* @return string exported fixtures format
|
||||||
*/
|
*/
|
||||||
public function getExportedFormat($fixtures)
|
public function exportFixtures($fixtures)
|
||||||
{
|
{
|
||||||
$content = "<?php\n\nreturn [";
|
$content = "<?php\n\nreturn [";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user