Browse Source

method renamed

tags/2.0.0-beta
Mark 11 years ago
parent
commit
02bfea4f5c
  1. 4
      extensions/yii/faker/FixtureController.php

4
extensions/yii/faker/FixtureController.php

@ -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 [";

Loading…
Cancel
Save