Skip to content
PHP Ecosystem
Explore

NativeInstallerInterface

API reference › Foxy › Native › NativeInstallerInterface

interfaceFoxy\Native\NativeInstallerInterface
Sourcesrc/Native/NativeInstallerInterface.php
Implemented by 1 type

Installs the frontend dependencies of a manifest into a flat directory without a Node.js package manager.

MethodDescriptionDefined by
install() abstractInstalls the dependencies declared by the manifest, reading or rewriting the lock file.NativeInstallerInterface
abstract public function install(string $manifestPath, string $lockPath, string $installDirectory, bool $update): void

Installs the dependencies declared by the manifest, reading or rewriting the lock file.

Parameters

ParameterTypeDescription
$manifestPathstringPath of the root package.json.
$lockPathstringPath of the foxy.lock file.
$installDirectorystringPath of the directory to populate (node_modules by default).
$updateboolWhether to resolve again even when the lock file is fresh.

Throws