Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
nojimage committed May 1, 2024
1 parent 0e96e15 commit 819603b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
12 changes: 10 additions & 2 deletions README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@
- マイグレーションの適用/ロールバック
- マイグレーションファイルの表示

## バージョン対応表

| CakePHP Version | Plugin Version | Branch |
|-----------------|----------------|----------------|
| 5.x | 3.x | cake5 |
| 4.x | 2.x | cake4 |
| 3.x | 1.x | cake3 |

## インストール

[composer](http://getcomposer.org) を使用してインストールできます。
Expand All @@ -39,10 +47,10 @@
composer require elstc/cakephp-migration-manager
```

アプリケーションの `src/Application.php` ファイルへ、次の行を追加します:
アプリケーションの `Application::bootstrap()` (`src/Application.php` ファイルを開きます) へ、次の行を追加します:

```
\Cake\Lib\Configure::write('Elastic/MigrationManager.baseController', \App\Controller\AppController::class);
\Cake\Core\Configure::write('Elastic/MigrationManager.baseController', \App\Controller\AppController::class);
$this->addPlugin('Elastic/MigrationManager');
```

Expand Down
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ so that unauthorized users cannot execute it.
- Run migrate / rollback a migration
- Show migration file

## Version Map

| CakePHP Version | Plugin Version | Branch |
|-----------------|----------------|----------------|
| 5.x | 3.x | cake5 |
| 4.x | 2.x | cake4 |
| 3.x | 1.x | cake3 |

## Installation

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).
Expand All @@ -41,10 +49,10 @@ The recommended way to install composer packages is:
composer require elstc/cakephp-migration-manager
```

Load the plugin by adding the following statement in your project's `src/Application.php`:
Load the plugin by adding the following statement in your project's `Application::bootstrap()` (open `src/Application.php`):

```
\Cake\Lib\Configure::write('Elastic/MigrationManager.baseController', \App\Controller\AppController::class);
\Cake\Core\Configure::write('Elastic/MigrationManager.baseController', \App\Controller\AppController::class);
$this->addPlugin('Elastic/MigrationManager');
```

Expand Down

0 comments on commit 819603b

Please sign in to comment.