for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php defined('SYSPATH') OR die('No direct script access.');
abstract class Minion_Database extends Minion_Task {
protected function db_params($database)
{
$db = Kohana::$config->load("database.$database.connection");
if ( ! isset($db['database']) )
if ( ! preg_match('/dbname=([^;]+)/', $db['dsn'], $matches))
throw new Kohana_Exception("Error connecting to database, database missing");
$db['database'] = $matches[1];
}
$db['type'] = Kohana::$config->load("database.$database.type");
return $db;