Commit 384a33ef authored by ergonlogic's avatar ergonlogic

Add autoloading for our future classes.

parent 60c9e65a
<?php
# placeholder
/**
* Implements hook_drush_init().
*/
function subdirs_drush_init() {
subdirs_provision_register_autoload();
}
/**
* Register our directory as a place to find Provision classes.
*
* This allows Provision to autoload our classes, so that we don't need to
* specifically include the files before we use the class.
*/
function subdirs_provision_register_autoload() {
static $loaded = FALSE;
if (!$loaded) {
$loaded = TRUE;
provision_autoload_register_prefix('Provision_', dirname(__FILE__));
}
}
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