for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Connections\Model;
use Drone\Db\TableGateway\TableGateway;
class Authentication extends TableGateway
{
public function connect($dbconfig)
$db = $this->getDriver()->getDb();
foreach ($dbconfig as $key => $value)
switch ($key)
case 'dbhost':
$db->setDbhost($value);
break;
case 'dbuser':
$db->setDbuser($value);
case 'dbpass':
$db->setDbpass($value);
case 'dbname':
$db->setDbname($value);
case 'dbchar':
$db->setDbChar($value);
}
return $db->reconnect();