@@ -41,16 +41,16 @@ Example Connection configuration "test\_antimattr\_mongodb.php"
41
41
/**
42
42
* @link http://php.net/manual/en/mongoclient.construct.php
43
43
*/
44
- return array(
44
+ return [
45
45
'host' => 'localhost', // default is localhost
46
46
'port' => '27017', // default is 27017
47
47
'dbname' => null, // optional, if authentication DB is required
48
48
'user' => null, // optional, if authentication is required
49
49
'password' => null, // optional, if authentication is required
50
- 'options' => array(
50
+ 'options' => [
51
51
'connect' => true // recommended
52
- )
53
- ) ;
52
+ ]
53
+ ] ;
54
54
```
55
55
56
56
XML or YAML Migration Configurations are supported
@@ -103,13 +103,13 @@ use AntiMattr\MongoDB\Migrations\Tools\Console\Command as AntiMattr;
103
103
use Symfony\Component\Console\Application;
104
104
105
105
$application = new Application();
106
- $application->addCommands(array(
106
+ $application->addCommands([
107
107
new AntiMattr\ExecuteCommand(),
108
108
new AntiMattr\GenerateCommand(),
109
109
new AntiMattr\MigrateCommand(),
110
110
new AntiMattr\StatusCommand(),
111
111
new AntiMattr\VersionCommand()
112
- ) );
112
+ ] );
113
113
$application->run();
114
114
```
115
115
@@ -343,8 +343,3 @@ Don't have the pre-commit hook running, please make sure to run the fixer/sniffe
343
343
$ vendor/bin/php-cs-fixer fix src/
344
344
$ vendor/bin/php-cs-fixer fix tests/
345
345
```
346
-
347
- PHP 7
348
- -----
349
- Please run before:
350
- composer require alcaeus/mongo-php-adapter
0 commit comments