@@ -61,13 +61,13 @@ Installation
61
61
62
62
```php
63
63
<?php
64
- return array(
65
- 'modules' => array(
64
+ return [
65
+ 'modules' => [
66
66
// ...
67
67
'LmcUser',
68
- ) ,
68
+ ] ,
69
69
// ...
70
- ) ;
70
+ ] ;
71
71
```
72
72
73
73
@@ -78,20 +78,20 @@ Installation
78
78
79
79
```php
80
80
<?php
81
- return array(
82
- 'db' => array(
81
+ return [
82
+ 'db' => [
83
83
'driver' => 'PdoMysql',
84
84
'hostname' => 'changeme',
85
85
'database' => 'changeme',
86
86
'username' => 'changeme',
87
87
'password' => 'changeme',
88
- ) ,
89
- 'service_manager' => array(
90
- 'factories' => array(
91
- ' Laminas\Db\Adapter\Adapter' => ' Laminas\Db\Adapter\AdapterServiceFactory' ,
92
- ) ,
93
- ) ,
94
- ) ;
88
+ ] ,
89
+ 'service_manager' =>[
90
+ 'factories' => [
91
+ \ Laminas\Db\Adapter\Adapter::class => \ Laminas\Db\Adapter\AdapterServiceFactory::class ,
92
+ ] ,
93
+ ] ,
94
+ ] ;
95
95
96
96
```
97
97
@@ -196,33 +196,33 @@ module.config.php, or a dedicated recaptcha.config.php):
196
196
197
197
<?php
198
198
// ./config/autoload/recaptcha.config.php
199
- return array(
200
- 'di'=> array(
201
- 'instance'=>array(
202
- 'alias'=>array(
199
+ return [
200
+ 'di'=> [
201
+ 'instance'=> [
202
+ 'alias'=> [
203
203
// OTHER ELEMENTS....
204
- 'recaptcha_element' => ' Laminas\Form\Element\Captcha' ,
205
- ) ,
206
- 'recaptcha_element' => array(
207
- 'parameters' => array(
204
+ 'recaptcha_element' => \ Laminas\Form\Element\Captcha::class ,
205
+ ] ,
206
+ 'recaptcha_element' => [
207
+ 'parameters' => [
208
208
'spec' => 'captcha',
209
- 'options'=>array(
209
+ 'options'=> [
210
210
'label' => '',
211
211
'required' => true,
212
212
'order' => 500,
213
- 'captcha' => array(
213
+ 'captcha' => [
214
214
'captcha' => 'ReCaptcha',
215
215
'privkey' => RECAPTCHA_PRIVATE_KEY,
216
216
'pubkey' => RECAPTCHA_PUBLIC_KEY,
217
- ) ,
218
- ) ,
219
- ) ,
220
- ) ,
221
- ' LmcUser\Form\Register' => array(
222
- 'parameters' => array(
217
+ ] ,
218
+ ] ,
219
+ ] ,
220
+ ] ,
221
+ \ LmcUser\Form\Register::class => [
222
+ 'parameters' => [
223
223
'captcha_element'=>'recaptcha_element',
224
- ) ,
225
- ) ,
226
- ) ,
227
- ) ,
228
- ) ;
224
+ ] ,
225
+ ] ,
226
+ ] ,
227
+ ] ,
228
+ ] ;
0 commit comments