Slide 46
Slide 46 text
setAdapterClass(
'bookstore', 'mysql'
);
$manager = new ConnectionManagerSingle();
$manager->setConfiguration(array (
'dsn' => 'mysql:host=localhost;dbname=my_db',
'user' => 'my_db_user',
'password' => 's3cr3t',
));
$serviceContainer->setConnectionManager(
'bookstore', $manager
);