function example_provision_register_autoload in Hosting 7.3
Same name and namespace in other branches
- 7.4 example/example_service/drush/example.drush.inc \example_provision_register_autoload()
Register our directory as a place to find provision classes.
This is needed so that provision can autoload our classes, which means we don't need to specifically include the files before we use the class, which is quite useful!
2 calls to example_provision_register_autoload()
- example_drush_init in example/
example_service/ drush/ example.drush.inc - Implements hook_drush_init().
- example_provision_services in example/
example_service/ drush/ example.drush.inc - Implements hook_provision_services().
File
- example/
example_service/ drush/ example.drush.inc, line 25 - An example of the provision service API.
Code
function example_provision_register_autoload() {
static $loaded = FALSE;
if (!$loaded) {
$loaded = TRUE;
provision_autoload_register_prefix('Provision_', dirname(__FILE__));
}
}