You are here

class HookXautoloadOperation in X Autoload 7.4

Hierarchy

Expanded class hierarchy of HookXautoloadOperation

2 files declare their use of HookXautoloadOperation
xautoload.module in ./xautoload.module
xautoload.system.inc in ./xautoload.system.inc

File

lib/FinderOperation/HookXautoloadOperation.php, line 8

Namespace

Drupal\xautoload\FinderOperation
View source
class HookXautoloadOperation implements FinderOperationInterface {

  /**
   * {@inheritdoc}
   */
  function operateOnFinder($finder, $helper) {

    // Let other modules register stuff to the finder via hook_xautoload().
    $classmap_generator = new ClassMapGenerator();
    $adapter = new ClassFinderAdapter($finder, $classmap_generator);
    $api = new \xautoload_InjectedAPI_hookXautoload($adapter, '');
    foreach (module_implements('xautoload') as $module) {
      $api
        ->setExtensionDir($dir = drupal_get_path('module', $module));
      $f = $module . '_xautoload';
      $f($api, $dir);
    }
  }

}

Members