Where's the best place to initialize the database adapter? I'm using the
GlobalAdapterFeature of Db\TableGateway and it
doesn't make sense to me to have the following lines in each table's factory
config:
$dbAdapter = $sm->get('Zend\Db\Adapter\Adapter');
Feature\GlobalAdapterFeature::setStaticAdapter($dbAdapter);
Since the database config lives "outside" any modules, in
/config/autoload/(global|local).php, should the initialization
happen outside, too? Is there a way to do this with the Service Manager outside
of a module, or should I just add
onBootstrap() to Application/Module.php?
Thanks,
-Brad
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]