Puli\Repository\AbstractEditableRepository::storeVersion PHP Method

storeVersion() protected method

Stores a version of a resource in the change stream.
protected storeVersion ( Puli\Repository\Api\Resource\PuliResource $resource )
$resource Puli\Repository\Api\Resource\PuliResource The resource version.
    protected function storeVersion(PuliResource $resource)
    {
        if (null !== $this->changeStream) {
            $this->changeStream->append($resource);
        }
    }