@@ -14,14 +14,14 @@ EC-CUBE3.0.13よりプラグインの雛形を生成するプラグインジェ
14
14
## プラグインの雛形を作成する
15
15
16
16
### プラグインジェネレータコマンドについて
17
- プラグイン開発する際に手助けをするために [ プラグイン開発用コンソールコマンド] ( plugin_console ) というものが用意されています。 プラグインジェネレータは
17
+ プラグイン開発の手助けをするために [ プラグイン開発用コンソールコマンド] ( plugin_console ) というものが用意されています。 プラグインジェネレータは
18
18
19
19
```
20
20
php app/console plugin:develop
21
21
```
22
22
23
23
に対して新たにパラメータを用意しています。
24
- パラメータの種類 は ` --help ` で確認できます。
24
+ パラメータの種類は ` --help ` で確認できます。
25
25
26
26
```
27
27
php app/console plugin:develop --help
@@ -43,7 +43,7 @@ php app/console plugin:develop generate
43
43
` generate ` コマンドを実行すると問い合わせ形式で、プラグイン作成時に必要となる情報が設定できます。
44
44
45
45
問い合わせ内容を以下に説明します。途中で終わらせたい場合、quitを入力してください。
46
- 必須以外の箇所については何も入力せずにenterを押すとスキップします 。
46
+ 必須以外の箇所については何も入力せずにEnterを押すとスキップします 。
47
47
48
48
### プラグイン名の入力
49
49
作成するプラグイン名を入力します。
@@ -55,40 +55,39 @@ php app/console plugin:develop generate
55
55
------------------------------------------------------
56
56
57
57
[+]Please enter Plugin Name
58
- Input[1] :
58
+ Input[1] :
59
59
```
60
60
61
61
### プラグインコードの入力
62
62
作成するプラグインコードを入力します。英数字のみ入力可能で1文字目は必ず半角英字の大文字で入力してください。
63
63
64
64
```
65
- [+]Please enter Plugin Name (only pascal case letters numbers are allowed)
66
- Input[2] :
65
+ [+]Please enter Plugin Code (First letter is uppercase alphabet only. alphabet and numbers are allowed. )
66
+ Input[2] :
67
67
```
68
- →「Please enter Plugin Name」となっていますが正しくは「Please enter Plugin Code」の誤りです。
69
68
70
69
### プラグインバージョン
71
70
プラグインのバージョンを入力します。
72
71
73
72
```
74
73
[+]Please enter version (correct format is x.y.z)
75
- Input[3] :
74
+ Input[3] :
76
75
```
77
76
78
77
### 作成者
79
78
ファイルヘッダに設定する作成者情報を入力します。
80
79
81
80
```
82
81
[+]Please enter author name or company
83
- Input[4] :
82
+ Input[4] :
84
83
```
85
84
86
85
### EC-CUBE3のサポート有無
87
86
EC-CUBE3.0.8以下と3.0.9以上でプラグイン機構に改修が入りました。3.0.8以下も対応するプラグインを作成する場合、` y ` を入力し、古いEC-CUBE3はサポートしないのであれば ` n ` を入力してください。
88
87
89
88
```
90
89
[+]Do you want to support old versions too? [y/n]
91
- Input[5] :
90
+ Input[5] :
92
91
```
93
92
94
93
### 共通イベント設定
@@ -98,7 +97,7 @@ EC-CUBE3で用意している共通イベント名を指定します。イベン
98
97
99
98
```
100
99
[+]Please enter site events(you can find documentation here http://www.ec-cube.net/plugin/)
101
- Input[6] :
100
+ Input[6] :
102
101
```
103
102
104
103
` app ` のみを入力し、enterを押します。
@@ -115,7 +114,7 @@ Input[6] : app
115
114
- eccube.event.app.terminate
116
115
117
116
[+]Please enter site events(you can find documentation here http://www.ec-cube.net/plugin/)
118
- Input[6] :
117
+ Input[6] :
119
118
```
120
119
121
120
イベント名にappが含まれているイベントが一覧表示されます。
@@ -131,16 +130,16 @@ Input[6] : eccube.event.app.request
131
130
132
131
--- Press Enter to move to the next step ---
133
132
[+]Please enter site events(you can find documentation here http://www.ec-cube.net/plugin/)
134
- Input[6] :
133
+ Input[6] :
135
134
```
136
135
137
136
138
137
### フロント、管理イベント設定
139
138
フロント、管理画面で利用しているイベントを設定します。使い方は共通イベントと同様です。
140
139
141
140
```
142
- [+]Please enter hook point , sample:front.cart.up.initialize
143
- Input[7] :
141
+ [+]Please enter hookpoint , sample:front.cart.up.initialize
142
+ Input[7] :
144
143
```
145
144
146
145
@@ -153,13 +152,13 @@ Input[7] :
153
152
[+]Plugin Name: サンプルプラグイン
154
153
[+]Plugin Code: Sample
155
154
[+]Version: 1.0.0
156
- [+]Author: lockon
155
+ [+]Author: Lockon co,.ltd.
157
156
[+]Old version support: No
158
- [+]Site events:
157
+ [+]Site events:
159
158
eccube.event.app.request
160
- [+]Hook points:
159
+ [+]Hook points:
161
160
162
- [confirm] Do you want to proceed? [y/n] :
161
+ [confirm] Do you want to proceed? [y/n] :
163
162
```
164
163
165
164
@@ -201,5 +200,5 @@ Plugin was created successfully
201
200
202
201
203
202
EC-CUBE3.0.13未満をご利用の方にはプラグインジェネレータというプラグインの雛形を作成するプラグインもあります。
204
- そちらの説明は [ こちら] ( plugin_tutorial-plugin-generate ) を参照してください。
203
+ 詳細は [ こちら] ( plugin_tutorial-plugin-generate ) を参照してください。
205
204
0 commit comments