Puli\Repository\InMemoryRepository::__construct PHP Method

__construct() public method

Create the repository.
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.
    public function __construct(ChangeStream $changeStream = null)
    {
        parent::__construct($changeStream);
        $this->clear();
    }