You are here

function LocalDirectoryAdapter::__construct in X Autoload 7.5

Same name and namespace in other branches
  1. 7.4 lib/Adapter/LocalDirectoryAdapter.php \Drupal\xautoload\Adapter\LocalDirectoryAdapter::__construct()

Parameters

ClassFinderAdapter $adapter: The class finder object.

string $localDirectory:

1 call to LocalDirectoryAdapter::__construct()
xautoload_InjectedAPI_hookXautoload::__construct in legacy/lib/InjectedAPI/hookXautoload.php
1 method overrides LocalDirectoryAdapter::__construct()
xautoload_InjectedAPI_hookXautoload::__construct in legacy/lib/InjectedAPI/hookXautoload.php

File

src/Adapter/LocalDirectoryAdapter.php, line 30

Class

LocalDirectoryAdapter
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\Adapter

Code

function __construct(ClassFinderAdapter $adapter, $localDirectory) {

  // parent::__construct($adapter->finder, $adapter->getClassmapGenerator());
  $this->master = $adapter;
  $this->localDirectory = strlen($localDirectory) ? rtrim($localDirectory, '/') . '/' : '';
}