Méthode | Description | |
---|---|---|
__construct ( Puli\Repository\Api\ChangeStream\ChangeStream $changeStream = null ) | Create the repository. | |
getVersions ( $path ) |
Méthode | Description | |
---|---|---|
clearVersions ( ) | Clears the change stream. | |
removeVersions ( string $path ) | Removes all versions of a resource from the change stream. | |
storeVersion ( Puli\Repository\Api\Resource\PuliResource $resource ) | Stores a version of a resource in the change stream. |
public __construct ( Puli\Repository\Api\ChangeStream\ChangeStream $changeStream = null ) | ||
$changeStream | Puli\Repository\Api\ChangeStream\ChangeStream | If provided, the repository will log resources changes in this change stream. |
protected removeVersions ( string $path ) | ||
$path | string | The Puli path. |
protected storeVersion ( Puli\Repository\Api\Resource\PuliResource $resource ) | ||
$resource | Puli\Repository\Api\Resource\PuliResource | The resource version. |