PHP Class Puli\Manager\Repository\Mapping\SyncRepositoryPath

Since: 1.0
Author: Bernhard Schussek ([email protected])
Inheritance: implements Puli\Manager\Transaction\AtomicOperation
Show file Open project: puli/manager

Public Methods

Method Description
__construct ( string $repositoryPath, Puli\Repository\Api\EditableRepository $repo, Puli\Manager\Repository\Mapping\PathMappingCollection $mappings, DependencyGraph $overrideGraph )
execute ( )
rollback ( )
takeSnapshot ( ) Records which mappings are currently enabled for the repository path.

Private Methods

Method Description
add ( $repositoryPath, array $filesystemPaths )
addInOrder ( array $filesystemPaths )
createResource ( $filesystemPath )
filterEnabledMappings ( string $repositoryPath, array &$inMappings, array &$outMappings, array &$processedPaths = [] )
getEnabledFilesystemPaths ( $repositoryPath )
getShortestRepositoryPath ( array $filesystemPathsBefore, array $filesystemPathsAfter )
remove ( $repositoryPath )
replace ( array $filesystemPathsBefore, array $filesystemPathsAfter )
sync ( array $filesystemPathsBefore, array $filesystemPathsAfter )

Method Details

__construct() public method

public __construct ( string $repositoryPath, Puli\Repository\Api\EditableRepository $repo, Puli\Manager\Repository\Mapping\PathMappingCollection $mappings, DependencyGraph $overrideGraph )
$repositoryPath string
$repo Puli\Repository\Api\EditableRepository
$mappings Puli\Manager\Repository\Mapping\PathMappingCollection
$overrideGraph Puli\Manager\Conflict\DependencyGraph

execute() public method

public execute ( )

rollback() public method

public rollback ( )

takeSnapshot() public method

Records which mappings are currently enabled for the repository path.
public takeSnapshot ( )