function ClassFinderAdapter::composerDir in X Autoload 7.5
Same name and namespace in other branches
- 7.4 lib/Adapter/ClassFinderAdapter.php \Drupal\xautoload\Adapter\ClassFinderAdapter::composerDir()
Scan a directory containing Composer-generated autoload files.
Parameters
string $dir: Directory to look for Composer-generated files. Typically this is the ../vendor/composer dir.
Overrides ClassFinderAdapterInterface::composerDir
File
- src/
Adapter/ ClassFinderAdapter.php, line 119
Class
- ClassFinderAdapter
- An instance of this class is passed around to implementations of hook_xautoload(). It acts as a wrapper around the ClassFinder, to register stuff.
Namespace
Drupal\xautoload\AdapterCode
function composerDir($dir) {
$dir = ComposerDir::create($dir);
$dir
->writeToAdapter($this);
}