Skip to content

Instantly share code, notes, and snippets.

@chukShirley
Forked from kingharrison/gist:a799f85bd0b5bcb07267
Last active August 29, 2015 14:05
Show Gist options
  • Save chukShirley/24c3c3086690f1a47cfe to your computer and use it in GitHub Desktop.
Save chukShirley/24c3c3086690f1a47cfe to your computer and use it in GitHub Desktop.
'service_manager' => array (
'invokables' => array (
'AuthorizationIbmi' => 'authorization.php',
),
'factories' => array(
'dbadapter' => function($sm) {
// DB adapter config
},
'tkconn' => function ($sm) {
$dbAdapter = $sm->get('dbadapter');
$dbAdapter->getDriver()->getConnection()->connect();
$conn = $dbAdapter->getDriver()->getConnection()->getResource();
$tk = new PgmCall\Module($conn);
return $tk;
)
)
}
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment