@@ -5,82 +5,82 @@ |
||
| 5 | 5 | $driver = $defaultConnection['driver'] ?? null; |
| 6 | 6 | |
| 7 | 7 | switch($driver) { |
| 8 | - case 'mysqli': |
|
| 9 | - case 'pdo_mysql': $adapter = 'mysql'; break; |
|
| 10 | - case 'pdo_oci': $adapter = 'oracle'; break; |
|
| 11 | - case 'pdo_pgsql': $adapter = 'pgsql'; break; |
|
| 12 | - case 'pdo_sqlite': $adapter = 'sqlite'; break; |
|
| 13 | - case 'pdo_sqlsrv': $adapter = 'sqlsrv'; break; |
|
| 14 | - default: $adapter = $driver; |
|
| 8 | + case 'mysqli': |
|
| 9 | + case 'pdo_mysql': $adapter = 'mysql'; break; |
|
| 10 | + case 'pdo_oci': $adapter = 'oracle'; break; |
|
| 11 | + case 'pdo_pgsql': $adapter = 'pgsql'; break; |
|
| 12 | + case 'pdo_sqlite': $adapter = 'sqlite'; break; |
|
| 13 | + case 'pdo_sqlsrv': $adapter = 'sqlsrv'; break; |
|
| 14 | + default: $adapter = $driver; |
|
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | switch($adapter) { |
| 18 | - case 'mysql': $stmt = ["SET SESSION sort_buffer_size=2097144; SET NAMES 'utf8'; SET SESSION sql_mode='ANSI'; SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED"]; break; |
|
| 19 | - default: $stmt = []; |
|
| 18 | + case 'mysql': $stmt = ["SET SESSION sort_buffer_size=2097144; SET NAMES 'utf8'; SET SESSION sql_mode='ANSI'; SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED"]; break; |
|
| 19 | + default: $stmt = []; |
|
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | return [ |
| 23 | - 'db' => [ |
|
| 24 | - 'adapter' => $adapter, |
|
| 25 | - 'host' => $defaultConnection['host'] ?? null, |
|
| 26 | - 'port' => $defaultConnection['port'] ?? null, |
|
| 27 | - 'socket' => $defaultConnection['socket'] ?? null, |
|
| 28 | - 'database' => $defaultConnection['dbname'] ?? null, |
|
| 29 | - 'username' => $defaultConnection['user'] ?? null, |
|
| 30 | - 'password' => $defaultConnection['password'] ?? null, |
|
| 31 | - 'stmt' => $stmt, |
|
| 32 | - 'defaultTableOptions' => [ |
|
| 33 | - 'charset' => $defaultConnection['tableoptions']['charset'] ?? 'utf8', |
|
| 34 | - 'collate' => $defaultConnection['tableoptions']['collate'] ?? 'utf8_unicode_ci', |
|
| 35 | - ], |
|
| 36 | - 'limit' => 3, |
|
| 37 | - ], |
|
| 38 | - 'fs' => [ |
|
| 39 | - 'adapter' => 'Standard', |
|
| 40 | - 'baseurl' => '/uploads/tx_aimeos', |
|
| 41 | - 'basedir' => $publicPath . '/uploads/tx_aimeos', |
|
| 42 | - 'tempdir' => $publicPath . '/typo3temp', |
|
| 43 | - ], |
|
| 44 | - 'fs-media' => [ |
|
| 45 | - 'adapter' => 'Standard', |
|
| 46 | - 'baseurl' => '/uploads/tx_aimeos', |
|
| 47 | - 'basedir' => $publicPath . '/uploads/tx_aimeos', |
|
| 48 | - 'tempdir' => $publicPath . '/typo3temp', |
|
| 49 | - ], |
|
| 50 | - 'fs-mimeicon' => [ |
|
| 51 | - 'adapter' => 'Standard', |
|
| 52 | - 'baseurl' => '/typo3conf/ext/aimeos/Resources/Public/Images/Mimeicons', |
|
| 53 | - 'basedir' => $publicPath . '/typo3conf/ext/aimeos/Resources/Public/Images/Mimeicons', |
|
| 54 | - 'tempdir' => $publicPath . '/typo3temp', |
|
| 55 | - ], |
|
| 56 | - 'fs-theme' => [ |
|
| 57 | - 'adapter' => 'Standard', |
|
| 58 | - 'baseurl' => '/typo3conf/ext/aimeos/Resources/Public/Themes', |
|
| 59 | - 'basedir' => $publicPath . '/typo3conf/ext/aimeos/Resources/Public/Themes', |
|
| 60 | - 'tempdir' => $publicPath . '/typo3temp', |
|
| 61 | - ], |
|
| 62 | - 'fs-admin' => [ |
|
| 63 | - 'adapter' => 'Standard', |
|
| 64 | - 'basedir' => $publicPath . '/uploads/tx_aimeos/.secure/admin', |
|
| 65 | - 'tempdir' => $publicPath . '/typo3temp', |
|
| 66 | - ], |
|
| 67 | - 'fs-export' => [ |
|
| 68 | - 'adapter' => 'Standard', |
|
| 69 | - 'basedir' => $publicPath . '/uploads/tx_aimeos/.secure/export', |
|
| 70 | - 'tempdir' => $publicPath . '/typo3temp', |
|
| 71 | - ], |
|
| 72 | - 'fs-import' => [ |
|
| 73 | - 'adapter' => 'Standard', |
|
| 74 | - 'basedir' => $publicPath . '/uploads/tx_aimeos/.secure/import', |
|
| 75 | - 'tempdir' => $publicPath . '/typo3temp', |
|
| 76 | - ], |
|
| 77 | - 'fs-secure' => [ |
|
| 78 | - 'adapter' => 'Standard', |
|
| 79 | - 'basedir' => $publicPath . '/uploads/tx_aimeos/.secure', |
|
| 80 | - 'tempdir' => $publicPath . '/typo3temp', |
|
| 81 | - ], |
|
| 82 | - 'mq' => [ |
|
| 83 | - 'adapter' => 'Standard', |
|
| 84 | - 'db' => 'db', |
|
| 85 | - ], |
|
| 23 | + 'db' => [ |
|
| 24 | + 'adapter' => $adapter, |
|
| 25 | + 'host' => $defaultConnection['host'] ?? null, |
|
| 26 | + 'port' => $defaultConnection['port'] ?? null, |
|
| 27 | + 'socket' => $defaultConnection['socket'] ?? null, |
|
| 28 | + 'database' => $defaultConnection['dbname'] ?? null, |
|
| 29 | + 'username' => $defaultConnection['user'] ?? null, |
|
| 30 | + 'password' => $defaultConnection['password'] ?? null, |
|
| 31 | + 'stmt' => $stmt, |
|
| 32 | + 'defaultTableOptions' => [ |
|
| 33 | + 'charset' => $defaultConnection['tableoptions']['charset'] ?? 'utf8', |
|
| 34 | + 'collate' => $defaultConnection['tableoptions']['collate'] ?? 'utf8_unicode_ci', |
|
| 35 | + ], |
|
| 36 | + 'limit' => 3, |
|
| 37 | + ], |
|
| 38 | + 'fs' => [ |
|
| 39 | + 'adapter' => 'Standard', |
|
| 40 | + 'baseurl' => '/uploads/tx_aimeos', |
|
| 41 | + 'basedir' => $publicPath . '/uploads/tx_aimeos', |
|
| 42 | + 'tempdir' => $publicPath . '/typo3temp', |
|
| 43 | + ], |
|
| 44 | + 'fs-media' => [ |
|
| 45 | + 'adapter' => 'Standard', |
|
| 46 | + 'baseurl' => '/uploads/tx_aimeos', |
|
| 47 | + 'basedir' => $publicPath . '/uploads/tx_aimeos', |
|
| 48 | + 'tempdir' => $publicPath . '/typo3temp', |
|
| 49 | + ], |
|
| 50 | + 'fs-mimeicon' => [ |
|
| 51 | + 'adapter' => 'Standard', |
|
| 52 | + 'baseurl' => '/typo3conf/ext/aimeos/Resources/Public/Images/Mimeicons', |
|
| 53 | + 'basedir' => $publicPath . '/typo3conf/ext/aimeos/Resources/Public/Images/Mimeicons', |
|
| 54 | + 'tempdir' => $publicPath . '/typo3temp', |
|
| 55 | + ], |
|
| 56 | + 'fs-theme' => [ |
|
| 57 | + 'adapter' => 'Standard', |
|
| 58 | + 'baseurl' => '/typo3conf/ext/aimeos/Resources/Public/Themes', |
|
| 59 | + 'basedir' => $publicPath . '/typo3conf/ext/aimeos/Resources/Public/Themes', |
|
| 60 | + 'tempdir' => $publicPath . '/typo3temp', |
|
| 61 | + ], |
|
| 62 | + 'fs-admin' => [ |
|
| 63 | + 'adapter' => 'Standard', |
|
| 64 | + 'basedir' => $publicPath . '/uploads/tx_aimeos/.secure/admin', |
|
| 65 | + 'tempdir' => $publicPath . '/typo3temp', |
|
| 66 | + ], |
|
| 67 | + 'fs-export' => [ |
|
| 68 | + 'adapter' => 'Standard', |
|
| 69 | + 'basedir' => $publicPath . '/uploads/tx_aimeos/.secure/export', |
|
| 70 | + 'tempdir' => $publicPath . '/typo3temp', |
|
| 71 | + ], |
|
| 72 | + 'fs-import' => [ |
|
| 73 | + 'adapter' => 'Standard', |
|
| 74 | + 'basedir' => $publicPath . '/uploads/tx_aimeos/.secure/import', |
|
| 75 | + 'tempdir' => $publicPath . '/typo3temp', |
|
| 76 | + ], |
|
| 77 | + 'fs-secure' => [ |
|
| 78 | + 'adapter' => 'Standard', |
|
| 79 | + 'basedir' => $publicPath . '/uploads/tx_aimeos/.secure', |
|
| 80 | + 'tempdir' => $publicPath . '/typo3temp', |
|
| 81 | + ], |
|
| 82 | + 'mq' => [ |
|
| 83 | + 'adapter' => 'Standard', |
|
| 84 | + 'db' => 'db', |
|
| 85 | + ], |
|
| 86 | 86 | ]; |
@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | $defaultConnection = $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default'] ?? []; |
| 5 | 5 | $driver = $defaultConnection['driver'] ?? null; |
| 6 | 6 | |
| 7 | -switch($driver) { |
|
| 7 | +switch( $driver ) { |
|
| 8 | 8 | case 'mysqli': |
| 9 | 9 | case 'pdo_mysql': $adapter = 'mysql'; break; |
| 10 | 10 | case 'pdo_oci': $adapter = 'oracle'; break; |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | default: $adapter = $driver; |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | -switch($adapter) { |
|
| 17 | +switch( $adapter ) { |
|
| 18 | 18 | case 'mysql': $stmt = ["SET SESSION sort_buffer_size=2097144; SET NAMES 'utf8'; SET SESSION sql_mode='ANSI'; SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED"]; break; |
| 19 | 19 | default: $stmt = []; |
| 20 | 20 | } |
@@ -4,7 +4,8 @@ discard block |
||
| 4 | 4 | $defaultConnection = $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default'] ?? []; |
| 5 | 5 | $driver = $defaultConnection['driver'] ?? null; |
| 6 | 6 | |
| 7 | -switch($driver) { |
|
| 7 | +switch($driver) |
|
| 8 | +{ |
|
| 8 | 9 | case 'mysqli': |
| 9 | 10 | case 'pdo_mysql': $adapter = 'mysql'; break; |
| 10 | 11 | case 'pdo_oci': $adapter = 'oracle'; break; |
@@ -14,7 +15,8 @@ discard block |
||
| 14 | 15 | default: $adapter = $driver; |
| 15 | 16 | } |
| 16 | 17 | |
| 17 | -switch($adapter) { |
|
| 18 | +switch($adapter) |
|
| 19 | +{ |
|
| 18 | 20 | case 'mysql': $stmt = ["SET SESSION sort_buffer_size=2097144; SET NAMES 'utf8'; SET SESSION sql_mode='ANSI'; SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED"]; break; |
| 19 | 21 | default: $stmt = []; |
| 20 | 22 | } |