Skip to content

Commit

Permalink
Merge pull request #973 from dasgarner/develop
Browse files Browse the repository at this point in the history
Fix timeseriesstore refactor xibosignage/xibo#2315
  • Loading branch information
dasgarner authored Sep 3, 2020
2 parents 8d88d2c + 3bfb3fb commit c5c426d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/Storage/MongoDbTimeSeriesStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,15 @@ public function setDependencies($log, $layoutFactory, $campaignFactory, $mediaFa
return $this;
}

/**
* @param \Xibo\Storage\StorageServiceInterface $store
* @return $this|\Xibo\Storage\MongoDbTimeSeriesStore
*/
public function setStore($store)
{
return $this;
}

/**
* Set Client in the event you want to completely replace the configuration options and roll your own client.
* @param \MongoDB\Client $client
Expand Down
6 changes: 6 additions & 0 deletions lib/Storage/TimeSeriesStoreInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ public function setDependencies(
$displayGroupFactory
);

/**
* @param \Xibo\Storage\StorageServiceInterface $store
* @return $this
*/
public function setStore($store);

/**
* Process and add a single statdata to array
* @param $statData array
Expand Down

0 comments on commit c5c426d

Please sign in to comment.