Commit c7327115 authored by Adrian Rossouw's avatar Adrian Rossouw
Browse files

well,i got it running without errors. .. probably still doesn't work.

introduced a 'null' class default, which silently allows you to run non existent methods.
parent 925ed937
......@@ -8,7 +8,10 @@
* It uses the provision API to tie into the right places in the site creation work flow.
*/
include_once(dirname(__FILE__) . '/../provision.service.inc');
function db_drush_init() {
include_once('mysql/mysql_service.inc');
$command = drush_get_command();
......
......@@ -2,6 +2,7 @@
// $Id$
// extends the pdo implementation
class provisionService_db_mysql extends provisionService_db_pdo {
static public $PDO_type = 'mysql';
......
......@@ -340,22 +340,3 @@ function provision_load_critical($load = null, $threshold = null) {
}
class provisionService {
}
function provision_service($type, $object = null) {
static $instances = null;
if (is_object($object)) {
$instances[$type] = $object;
}
if (isset($instances[$type])) {
return $instances[$type];
}
return false;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment