From b4549f3a54dff012f463274e4e1a41a448c2ffe7 Mon Sep 17 00:00:00 2001 From: resurtm Date: Sun, 18 Dec 2016 23:29:58 +0600 Subject: [PATCH] documentation wip --- README.md | 45 ++++++-------------------------------- docs/README.md | 5 +++++ docs/media/cogs.svg | 1 + docs/media/information.md | 17 ++++++++++++++ docs/media/user-secret.svg | 1 + docs/media/wrench.svg | 1 + docs/media/yii-logo.svg | 33 ++++++++++++++++++++++++++++ 7 files changed, 65 insertions(+), 38 deletions(-) create mode 100644 docs/media/cogs.svg create mode 100644 docs/media/information.md create mode 100644 docs/media/user-secret.svg create mode 100644 docs/media/wrench.svg create mode 100644 docs/media/yii-logo.svg diff --git a/README.md b/README.md index aff25f2..2f7fb31 100644 --- a/README.md +++ b/README.md @@ -1,40 +1,9 @@ -Migrations -========== +Yii2 User +========= -Add the following settings to your console application configuration file: +![](./docs/media/yii-logo.svg "") +![](./docs/media/user-secret.svg "") +![](./docs/media/wrench.svg "") +![](./docs/media/cogs.svg "") -```php -return [ - // ... - 'controllerMap' => [ - 'migrate' => [ - 'class' => \yii\console\controllers\MigrateController::class, - 'migrationNamespaces' => [ - 'Da\User\Migration', - ], - ], - ], - // ... -]; -``` - -This will allow you to run only a single console command: - -``` -./yii migrate -``` - -It prevents you from manual tracking of new migrations coming from our extension. What if we would add a new migration class, and you forgot to run appropriate console command to launch them? - -Without namespaced migrations it would be: - -``` -./yii migrate -./yii migrate --migrationPath="@Da/User/resources/migrations" -``` - -Without namespaced migrations it's just: - -``` -./yii migrate -``` +© [2amigos](http://www.2amigos.us/) 2016 diff --git a/docs/README.md b/docs/README.md index 116bdd0..82e13a6 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,6 +1,11 @@ Yii2 User Module Documentation ============================== +![](./media/yii-logo.svg "") +![](./media/user-secret.svg "") +![](./media/wrench.svg "") +![](./media/cogs.svg "") + © [2amigos](http://www.2amigos.us/) 2016 Installation diff --git a/docs/media/cogs.svg b/docs/media/cogs.svg new file mode 100644 index 0000000..e7f37a9 --- /dev/null +++ b/docs/media/cogs.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/media/information.md b/docs/media/information.md new file mode 100644 index 0000000..ab06171 --- /dev/null +++ b/docs/media/information.md @@ -0,0 +1,17 @@ +Yii Logo +======== + +File `yii-logo.svg`: +[Yii Framework logo download](http://www.yiiframework.com/logo/) + +Font Awesome icons +================== + +File `cogs.svg`: +[Github project: encharm/Font-Awesome-SVG-PNG](https://github.com/encharm/Font-Awesome-SVG-PNG/blob/master/black/svg/cogs.svg) + +File `user-secret.svg: +[Github project: encharm/Font-Awesome-SVG-PNG](https://github.com/encharm/Font-Awesome-SVG-PNG/blob/master/black/svg/user-secret.svg) + +File `wrench.svg`: +[Github project: encharm/Font-Awesome-SVG-PNG](https://github.com/encharm/Font-Awesome-SVG-PNG/blob/master/black/svg/wrench.svg) diff --git a/docs/media/user-secret.svg b/docs/media/user-secret.svg new file mode 100644 index 0000000..dfb39f6 --- /dev/null +++ b/docs/media/user-secret.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/media/wrench.svg b/docs/media/wrench.svg new file mode 100644 index 0000000..a55a15f --- /dev/null +++ b/docs/media/wrench.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/media/yii-logo.svg b/docs/media/yii-logo.svg new file mode 100644 index 0000000..5e29e84 --- /dev/null +++ b/docs/media/yii-logo.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + +