mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-22 11:21:01 +08:00
CHANGELOG maintainance and code style
This commit is contained in:
7
extensions/yii/authclient/CHANGELOG.md
Normal file
7
extensions/yii/authclient/CHANGELOG.md
Normal file
@ -0,0 +1,7 @@
|
||||
Yii Framework 2 authclient extension Change Log
|
||||
===============================================
|
||||
|
||||
2.0.0 beta under development
|
||||
----------------------------
|
||||
|
||||
- Initial release.
|
@ -4,9 +4,4 @@ Yii Framework 2 faker extension Change Log
|
||||
2.0.0 beta under development
|
||||
----------------------------
|
||||
|
||||
- no changes in this release.
|
||||
|
||||
2.0.0 alpha, December 1, 2013
|
||||
-----------------------------
|
||||
|
||||
- Initial release.
|
@ -138,7 +138,6 @@ use yii\helpers\Console;
|
||||
*/
|
||||
class FixtureController extends \yii\console\controllers\FixtureController
|
||||
{
|
||||
|
||||
/**
|
||||
* type of fixture generating
|
||||
*/
|
||||
@ -148,32 +147,29 @@ class FixtureController extends \yii\console\controllers\FixtureController
|
||||
* @var string controller default action ID.
|
||||
*/
|
||||
public $defaultAction = 'generate';
|
||||
|
||||
/**
|
||||
* Alias to the template path, where all tables templates are stored.
|
||||
* @var string
|
||||
*/
|
||||
public $templatePath = '@tests/unit/templates/fixtures';
|
||||
|
||||
/**
|
||||
* Language to use when generating fixtures data.
|
||||
* @var string
|
||||
*/
|
||||
public $language;
|
||||
|
||||
/**
|
||||
* Additional data providers that can be created by user and will be added to the Faker generator.
|
||||
* More info in [Faker](https://github.com/fzaninotto/Faker.) library docs.
|
||||
* @var array
|
||||
*/
|
||||
public $providers = [];
|
||||
|
||||
/**
|
||||
* Faker generator instance
|
||||
* @var \Faker\Generator
|
||||
*/
|
||||
private $_generator;
|
||||
|
||||
|
||||
/**
|
||||
* Returns the names of the global options for this command.
|
||||
* @return array the names of the global options for this command.
|
||||
@ -218,8 +214,7 @@ class FixtureController extends \yii\console\controllers\FixtureController
|
||||
}
|
||||
|
||||
if (empty($files)) {
|
||||
throw new Exception(
|
||||
"No files were found by name: \"" . implode(', ', $file) . "\". \n"
|
||||
throw new Exception("No files were found by name: \"" . implode(', ', $file) . "\".\n"
|
||||
. "Check that template with these name exists, under template path: \n\"{$templatePath}\"."
|
||||
);
|
||||
}
|
||||
@ -370,5 +365,4 @@ class FixtureController extends \yii\console\controllers\FixtureController
|
||||
}
|
||||
return $this->confirm('Generate above fixtures?');
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,8 +1,9 @@
|
||||
Faker Extension for Yii 2
|
||||
===============================
|
||||
=========================
|
||||
|
||||
This extension provides a [`Faker`](https://github.com/fzaninotto/Faker) fixture command for Yii 2.
|
||||
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
@ -22,6 +23,7 @@ or add
|
||||
|
||||
to the require section of your composer.json.
|
||||
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
|
Reference in New Issue
Block a user