You are here

function xautoload_InjectedAPI_hookXautoload::__construct in X Autoload 7.4

Same name and namespace in other branches
  1. 7.5 legacy/lib/InjectedAPI/hookXautoload.php \xautoload_InjectedAPI_hookXautoload::__construct()
  2. 7.2 lib/InjectedAPI/hookXautoload.php \xautoload_InjectedAPI_hookXautoload::__construct()
  3. 7.3 lib/InjectedAPI/hookXautoload.php \xautoload_InjectedAPI_hookXautoload::__construct()

Parameters

ClassFinderAdapter $adapter: The class finder object.

string $localDirectory ;:

Overrides LocalDirectoryAdapter::__construct

File

legacy/lib/InjectedAPI/hookXautoload.php, line 28

Class

xautoload_InjectedAPI_hookXautoload
An instance of this class is passed around to implementations of hook_xautoload(). It acts as a wrapper around the ClassFinder, to register stuff.

Code

function __construct($adapter, $localDirectory) {
  parent::__construct($adapter, $localDirectory);
  $this->finder = $adapter
    ->getFinder();
}