You are here

public function PathLocator::__construct in Automatic Updates 8.2

Constructs a PathLocator object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.

string $app_root: The absolute path of the running Drupal code base.

File

src/PathLocator.php, line 36

Class

PathLocator
Computes file system paths that are needed for automatic updates.

Namespace

Drupal\automatic_updates

Code

public function __construct(ConfigFactoryInterface $config_factory, string $app_root) {
  $this->configFactory = $config_factory;
  $this->appRoot = $app_root;
}