mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-22 01:30:23 +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);
|
||||
}
|
||||
|
||||
$content = $this->getExportedFormat($fixtures);
|
||||
$content = $this->exportFixtures($fixtures);
|
||||
file_put_contents($fixturesPath.'/'.$fixtureFileName, $content);
|
||||
$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
|
||||
* @return string exported fixtures format
|
||||
*/
|
||||
public function getExportedFormat($fixtures)
|
||||
public function exportFixtures($fixtures)
|
||||
{
|
||||
$content = "<?php\n\nreturn [";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user