-
-
Notifications
You must be signed in to change notification settings - Fork 0
PackagedDirectorySynchronizer
github-actions edited this page Apr 20, 2026
·
1 revision
Synchronizes one packaged directory of symlinked entries into a consumer repository.
- Full name:
\FastForward\DevTools\Sync\PackagedDirectorySynchronizer - This class is marked as final and can't be subclassed
- This class implements:
LoggerAwareInterface - This class is a Final class
Initializes the synchronizer with a filesystem and finder factory.
public __construct(\FastForward\DevTools\Filesystem\FilesystemInterface $filesystem, \FastForward\DevTools\Filesystem\FinderFactoryInterface $finderFactory, \Psr\Log\LoggerInterface $logger): mixedParameters:
| Parameter | Type | Description |
|---|---|---|
$filesystem |
\FastForward\DevTools\Filesystem\FilesystemInterface | Filesystem instance for file operations |
$finderFactory |
\FastForward\DevTools\Filesystem\FinderFactoryInterface | Factory for locating packaged directories |
$logger |
\Psr\Log\LoggerInterface | Logger for recording synchronization actions and decisions |
{@inheritDoc}
public setLogger(\Psr\Log\LoggerInterface $logger): voidParameters:
| Parameter | Type | Description |
|---|---|---|
$logger |
\Psr\Log\LoggerInterface |
Synchronizes packaged directory entries into the consumer repository.
public synchronize(string $targetDir, string $packagePath, string $directoryLabel): \FastForward\DevTools\Sync\SynchronizeResultParameters:
| Parameter | Type | Description |
|---|---|---|
$targetDir |
string | Absolute path to the consumer directory to populate |
$packagePath |
string | Absolute path to the packaged directory to mirror |
$directoryLabel |
string | Human-readable directory label used in log messages |
Return Value:
Result containing counts of created, preserved, and removed links