chuk-shirley
8/22/2014 - 3:32 PM

gistfile1.txt

	'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;
					)
				)
			}
		),