You are here

site_audit.autoload.inc in Site Audit 7

Same filename and directory in other branches
  1. 8.2 site_audit.autoload.inc

Autoloader.

File

site_audit.autoload.inc
View source
<?php

/**
 * @file
 * Autoloader.
 */

// Autoload Report classes.
spl_autoload_register(function ($class) {
  if (strpos($class, 'SiteAuditReport') === 0) {
    require_once SITE_AUDIT_BASE_PATH . '/Report/' . substr($class, strlen('SiteAuditReport')) . '.php';
  }
});