Last active
August 29, 2015 14:23
-
-
Save chukShirley/544f34f7713ce6ad8cd2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // config/application.config.php | |
| $env = getenv('APPLICATION_ENV'); | |
| return [ | |
| 'appVersion' => '1.2.9', | |
| 'modules' => [ | |
| 'Application', | |
| 'Scrap' | |
| ], | |
| 'module_listener_options' => [ | |
| 'module_paths' => [ | |
| './module', | |
| './vendor', | |
| ], | |
| 'config_glob_paths' => [ | |
| sprintf('config/autoload/{,*.}{global,%s,local}.php', $env) | |
| ], | |
| ], | |
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // config/autoload/db.development.php | |
| return [ | |
| 'service_manager' => [ | |
| 'factories' => [ | |
| 'dbAdapter' => function($sm){ | |
| return new \Zend\Db\Adapter\Adapter([ | |
| 'driver' => 'IbmDb2', | |
| 'platform' => 'IbmDb2', | |
| 'platform_options' => [ | |
| 'quote_identifiers' => false, | |
| ], | |
| 'database' => '*LOCAL', | |
| 'username' => 'WEBTEST', | |
| 'password' => 'WEBTEST', | |
| 'driver_options' => [ | |
| 'i5_naming' => DB2_I5_NAMING_ON, | |
| 'i5_libl' => 'SCRAPTEST' | |
| ] | |
| ]); | |
| }, | |
| 'ibmiToolkit' => function($sm){ | |
| $dbAdapter = $sm->get('dbAdapter'); | |
| $dbAdapter->getDriver()->getConnection()->connect(); | |
| $conn = $dbAdapter->getDriver()->getConnection()->getResource(); | |
| require('ToolkitService.php'); | |
| $namingMode = DB2_I5_NAMING_ON; | |
| $tk = ToolkitService::getInstance($conn,$namingMode); | |
| $tk->setOptions( | |
| [ | |
| 'stateless' => true, | |
| 'plugSize' => '15M', | |
| 'debut' => true, | |
| 'debugLogFile' => '/usr/local/zendsvr6/var/log/toolkit_debug' . date("Ymd") . '.log' | |
| ] | |
| ); | |
| return $tk; | |
| }, | |
| ], | |
| 'appUrl' => function($sm){ | |
| return 'http://10.0.6.2:10095/chuk/scrap'; | |
| }, | |
| 'error_log' => function($sm){ | |
| return '/usr/local/zendsvr6/var/log/php-dev.log'; | |
| }, | |
| ], | |
| ]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment