Skip to content

Commit 0e14ecc

Browse files
authored
Update README.md
- Use PHP >= 5.4 shortcode for arrays - Use fully qualified class name
1 parent 3640c6e commit 0e14ecc

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

README.md

+34-34
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ Installation
6161

6262
```php
6363
<?php
64-
return array(
65-
'modules' => array(
64+
return [
65+
'modules' => [
6666
// ...
6767
'LmcUser',
68-
),
68+
],
6969
// ...
70-
);
70+
];
7171
```
7272

7373

@@ -78,20 +78,20 @@ Installation
7878

7979
```php
8080
<?php
81-
return array(
82-
'db' => array(
81+
return [
82+
'db' => [
8383
'driver' => 'PdoMysql',
8484
'hostname' => 'changeme',
8585
'database' => 'changeme',
8686
'username' => 'changeme',
8787
'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+
];
9595

9696
```
9797

@@ -196,33 +196,33 @@ module.config.php, or a dedicated recaptcha.config.php):
196196

197197
<?php
198198
// ./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'=> [
203203
// 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' => [
208208
'spec' => 'captcha',
209-
'options'=>array(
209+
'options'=> [
210210
'label' => '',
211211
'required' => true,
212212
'order' => 500,
213-
'captcha' => array(
213+
'captcha' => [
214214
'captcha' => 'ReCaptcha',
215215
'privkey' => RECAPTCHA_PRIVATE_KEY,
216216
'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' => [
223223
'captcha_element'=>'recaptcha_element',
224-
),
225-
),
226-
),
227-
),
228-
);
224+
],
225+
],
226+
],
227+
],
228+
];

0 commit comments

Comments
 (0)