Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
76b6eb11
Commit
76b6eb11
authored
Jan 03, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CHANGELOG maintainance and code style
parent
58c40818
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
15 deletions
+13
-15
CHANGELOG.md
extensions/yii/authclient/CHANGELOG.md
+8
-0
CHANGELOG.md
extensions/yii/faker/CHANGELOG.md
+0
-6
FixtureController.php
extensions/yii/faker/FixtureController.php
+2
-8
README.md
extensions/yii/faker/README.md
+3
-1
No files found.
extensions/yii/authclient/CHANGELOG.md
0 → 100644
View file @
76b6eb11
Yii Framework 2 authclient extension Change Log
===============================================
2.
0.0 beta under development
----------------------------
-
Initial release.
\ No newline at end of file
extensions/yii/faker/CHANGELOG.md
View file @
76b6eb11
...
...
@@ -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.
\ No newline at end of file
extensions/yii/faker/FixtureController.php
View file @
76b6eb11
...
...
@@ -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?'
);
}
}
extensions/yii/faker/README.md
View file @
76b6eb11
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
-----
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment