Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
- Use PHP >= 5.4 shortcode for arrays
- Use fully qualified class name
  • Loading branch information
trippodi authored Jul 5, 2023
1 parent 3640c6e commit 0e14ecc
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ Installation

```php
<?php
return array(
'modules' => array(
return [
'modules' => [
// ...
'LmcUser',
),
],
// ...
);
];
```


Expand All @@ -78,20 +78,20 @@ Installation

```php
<?php
return array(
'db' => array(
return [
'db' => [
'driver' => 'PdoMysql',
'hostname' => 'changeme',
'database' => 'changeme',
'username' => 'changeme',
'password' => 'changeme',
),
'service_manager' => array(
'factories' => array(
'Laminas\Db\Adapter\Adapter' => 'Laminas\Db\Adapter\AdapterServiceFactory',
),
),
);
],
'service_manager' =>[
'factories' => [
\Laminas\Db\Adapter\Adapter::class => \Laminas\Db\Adapter\AdapterServiceFactory::class,
],
],
];

```

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

<?php
// ./config/autoload/recaptcha.config.php
return array(
'di'=> array(
'instance'=>array(
'alias'=>array(
return [
'di'=> [
'instance'=> [
'alias'=> [
// OTHER ELEMENTS....
'recaptcha_element' => 'Laminas\Form\Element\Captcha',
),
'recaptcha_element' => array(
'parameters' => array(
'recaptcha_element' => \Laminas\Form\Element\Captcha::class,
],
'recaptcha_element' => [
'parameters' => [
'spec' => 'captcha',
'options'=>array(
'options'=> [
'label' => '',
'required' => true,
'order' => 500,
'captcha' => array(
'captcha' => [
'captcha' => 'ReCaptcha',
'privkey' => RECAPTCHA_PRIVATE_KEY,
'pubkey' => RECAPTCHA_PUBLIC_KEY,
),
),
),
),
'LmcUser\Form\Register' => array(
'parameters' => array(
],
],
],
],
\LmcUser\Form\Register::class => [
'parameters' => [
'captcha_element'=>'recaptcha_element',
),
),
),
),
);
],
],
],
],
];

0 comments on commit 0e14ecc

Please sign in to comment.