Skip to content
This repository has been archived by the owner on Nov 28, 2017. It is now read-only.

Commit

Permalink
Remove IStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Chekalskiy committed Jan 4, 2016
1 parent 54faaa2 commit a53e93f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ require 'vendor/autoload.php';
```

### Simple usage
You should use external database to store already sent reviews. We advice Redis with [Predis](https://github.com/nrk/predis) library. Library should implement `IStorage` interface.
You should use external database to store already sent reviews. We advice Redis with [Predis](https://github.com/nrk/predis) library. Library should implement `sismember`, `sadd`, `exists` and `set` methods.

You need to [create new Incoming webhook](https://slack.com/services/new/incoming-webhook) in Slack and change `{APPID}` with [the real app id](https://www.codeproof.com/blog/how-to-find-aitunes-store-id-or-appid/):

Expand Down
9 changes: 0 additions & 9 deletions src/IStorage.php

This file was deleted.

4 changes: 2 additions & 2 deletions src/Reviewer.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ public function __construct($appId, $maxPages = 3)
/**
* Storage setter
*
* @param object $storage implements IStorage
* @param object $storage
* @return TJ\Reviewer
*/
public function setStorage(IStorage $storage)
public function setStorage($storage)
{
$this->storage = $storage;

Expand Down

0 comments on commit a53e93f

Please sign in to comment.