Skip to content

Commit 2a4fd54

Browse files
committed
Resolves issue #6
1 parent 570c19e commit 2a4fd54

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "library",
55
"require": {
66
"php": "^7.0",
7-
"rapidwebltd/rw-file-cache": "^1.2",
7+
"divineomega/do-file-cache": "^2.0",
88
"divineomega/is_offensive": "^1.0",
99
"davechild/textstatistics": "^1.0",
1010
"doctrine/inflector": "^1.2"

src/Word.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
namespace DivineOmega\WordInfo;
44

55
use DaveChild\TextStatistics\Syllables;
6-
use rapidweb\RWFileCache\RWFileCache;
6+
use DivineOmega\DOFileCache\DOFileCache;
77

88
class Word
99
{
1010
/** @var string|null */
1111
private $word;
1212

13-
/** @var RWFileCache|null */
13+
/** @var DOFileCache|null */
1414
private $cache;
1515

1616
/**
@@ -43,7 +43,7 @@ public function __toString()
4343
*/
4444
private function setupCache()
4545
{
46-
$this->cache = new RWFileCache();
46+
$this->cache = new DOFileCache();
4747
$this->cache->changeConfig(['cacheDirectory' => '/tmp/php-word-info-cache/']);
4848
}
4949

@@ -164,7 +164,7 @@ public function portmanteaus()
164164

165165
foreach ($responseItems as $responseItem) {
166166
$responseItemPortmanteaus = array_map(function ($portmanteauString) {
167-
return new Word($portmanteauString);
167+
return new self($portmanteauString);
168168
}, explode(',', $responseItem->combined));
169169

170170
$portmanteaus = array_merge($portmanteaus, $responseItemPortmanteaus);

0 commit comments

Comments
 (0)