File tree Expand file tree Collapse file tree 3 files changed +16
-5
lines changed Expand file tree Collapse file tree 3 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ protected function getDsn(array $config) {
3030
3131 $ dsn = "odbc: "
3232 // General settings
33- . "DRIVER={iSeries Access ODBC Driver} ; "
33+ . "DRIVER= $ name ; "
3434 . "SYSTEM= $ host; "
3535 . "UserID= $ username; "
3636 . "Password= $ password; "
Original file line number Diff line number Diff line change @@ -45,15 +45,15 @@ public function register()
4545 {
4646
4747 //Only use configurations that feature a "odbc" or "ibm" driver
48- if (!isset ($ config ['driver ' ]) || !in_array ($ config ['driver ' ], ['odbc ' , 'ibm ' ]) )
48+ if (!isset ($ config ['type ' ]) || !in_array ($ config ['type ' ], ['odbc ' , 'ibm ' ]) )
4949 {
5050 continue ;
5151 }
5252
5353 //Create a connector
5454 $ this ->app ['db ' ]->extend ($ conn , function ($ config )
5555 {
56- switch ($ config ['driver ' ]) {
56+ switch ($ config ['type ' ]) {
5757 case 'odbc ' :
5858 $ connector = new ODBCConnector ();
5959 break ;
Original file line number Diff line number Diff line change 5656
5757*/
5858
59-
6059return [
6160
6261 'connections ' => [
6362
6463 'ibmi ' => [
65- 'driver ' => 'odbc ' / 'ibm ' ,
64+ 'type ' => 'odbc ' / 'ibm ' ,
65+ 'name ' => '{IBM i Access ODBC Driver} ' / '{iSeries Access ODBC Driver} ' ,
6666 // General settings
6767 'host ' => 'server ' ,
6868 'username ' => '' ,
131131 PDO ::ATTR_CASE => PDO ::CASE_LOWER ,
132132 PDO ::ATTR_EMULATE_PREPARES => false ,
133133 PDO ::ATTR_PERSISTENT => false
134+ ],
135+ 'toolkit ' => [
136+ 'XMLServiceLib ' => 'XMLSERVICE ' ,
137+ 'debug ' => false ,
138+ 'debugLogFile ' => storage_path () . '/logs/toolkit.log ' ,
139+ 'InternalKey ' => '/tmp/ ' . 'Toolkit_ ' . app ()->environment () . '_ ' . rand (1 , 10 ),
140+ 'stateless ' => false ,
141+ 'plugSize ' => '4K ' ,
142+ 'ccsidBefore ' => "819/1147 " ,
143+ 'ccsidAfter ' => "1147/819 " ,
144+ 'useHex ' => true
134145 ]
135146 ],
136147
You can’t perform that action at this time.
0 commit comments