Skip to content

Commit ac65b86

Browse files
author
GTCrais
committed
Rename some options for consistency.
1 parent f62afcd commit ac65b86

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ From there, copy `privateKey`, `encryptionKey` and `routePrefix` to Centinel, an
3131
- `database` - database settings and options:
3232
- `connection` - required. `{default}` to use the default connection, or define connection explicitly
3333
- `port` - optional. Connection port
34-
- `unix_socket` - optional. Connection unix socket
35-
- `dump_binary_path` - optional. Path to dump utility
34+
- `unixSocket` - optional. Connection unix socket
35+
- `dumpBinaryPath` - optional. Path to dump utility
3636
- `timeout` - optional. Dump timeout
3737
- `includeTables` - optional. Dump only tables specified in the array
3838
- `excludeTables` - optional. Dump all tables except ones specified in the array

src/Classes/Database.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ protected static function dumpMySql($connection)
5454
$dumper = $dumper->setPort(self::getOption('port'));
5555
}
5656

57-
if (self::optionIsSet('unix_socket')) {
58-
$dumper = $dumper->setSocket(self::getOption('unix_socket'));
57+
if (self::optionIsSet('unixSocket')) {
58+
$dumper = $dumper->setSocket(self::getOption('unixSocket'));
5959
}
6060

61-
if (self::optionIsSet('dump_binary_path')) {
62-
$dumper = $dumper->setDumpBinaryPath(self::getOption('dump_binary_path'));
61+
if (self::optionIsSet('dumpBinaryPath')) {
62+
$dumper = $dumper->setDumpBinaryPath(self::getOption('dumpBinaryPath'));
6363
}
6464

6565
if (self::optionIsSet('timeout')) {
@@ -95,12 +95,12 @@ protected static function dumpPostgreSql($connection)
9595
$dumper = $dumper->setPort(self::getOption('port'));
9696
}
9797

98-
if (self::optionIsSet('unix_socket')) {
99-
$dumper = $dumper->setSocket(self::getOption('unix_socket'));
98+
if (self::optionIsSet('unixSocket')) {
99+
$dumper = $dumper->setSocket(self::getOption('unixSocket'));
100100
}
101101

102-
if (self::optionIsSet('dump_binary_path')) {
103-
$dumper = $dumper->setDumpBinaryPath(self::getOption('dump_binary_path'));
102+
if (self::optionIsSet('dumpBinaryPath')) {
103+
$dumper = $dumper->setDumpBinaryPath(self::getOption('dumpBinaryPath'));
104104
}
105105

106106
if (self::optionIsSet('timeout')) {

src/config/emptyConfig.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
'database' => [
1717
'connection' => '{default}',
1818
'port' => null,
19-
'unix_socket' => null,
20-
'dump_binary_path' => null,
19+
'unixSocket' => null,
20+
'dumpBinaryPath' => null,
2121
'timeout' => 120,
2222
'includeTables' => null,
2323
'excludeTables' => null

0 commit comments

Comments
 (0)