PackageJsonSynchronizer
in package
Synchronize package.json files detected in installed PHP packages with the current application.
Table of Contents
- $rootDir : mixed
- $vendorDir : mixed
- __construct() : mixed
- registerPeerDependencies() : mixed
- shouldSynchronize() : bool
- synchronize() : bool
- addPackageJsonLink() : bool
- compactConstraints() : string
- registerWebpackResources() : mixed
- removePackageJsonLinks() : bool
- resolvePackageJson() : JsonFile|null
Properties
$rootDir
private
mixed
$rootDir
$vendorDir
private
mixed
$vendorDir
Methods
__construct()
public
__construct(string $rootDir[, string $vendorDir = 'vendor' ]) : mixed
Parameters
- $rootDir : string
- $vendorDir : string = 'vendor'
Return values
mixed —registerPeerDependencies()
public
registerPeerDependencies(array<string|int, mixed> $phpPackages) : mixed
Parameters
- $phpPackages : array<string|int, mixed>
Return values
mixed —shouldSynchronize()
public
shouldSynchronize() : bool
Return values
bool —synchronize()
public
synchronize(array<string|int, mixed> $phpPackages) : bool
Parameters
- $phpPackages : array<string|int, mixed>
Return values
bool —addPackageJsonLink()
private
addPackageJsonLink(array<string|int, mixed> $phpPackage) : bool
Parameters
- $phpPackage : array<string|int, mixed>
Return values
bool —compactConstraints()
private
compactConstraints(array<string|int, ConstraintInterface> $constraints) : string
Parameters
- $constraints : array<string|int, ConstraintInterface>
Return values
string —registerWebpackResources()
private
registerWebpackResources(array<string|int, mixed> $phpPackages) : mixed
Parameters
- $phpPackages : array<string|int, mixed>
Return values
mixed —removePackageJsonLinks()
private
removePackageJsonLinks(array<string|int, mixed> $packageJson) : bool
Parameters
- $packageJson : array<string|int, mixed>
Return values
bool —resolvePackageJson()
private
resolvePackageJson(array<string|int, mixed> $phpPackage) : JsonFile|null
Parameters
- $phpPackage : array<string|int, mixed>