@@ -22,6 +22,9 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | class BackendCacheFactory |
| 24 | 24 | { |
| 25 | + /** |
|
| 26 | + * @param string $type |
|
| 27 | + */ |
|
| 25 | 28 | public function create($type, $host = null, $port = null) |
| 26 | 29 | { |
| 27 | 30 | $host = $host ? $host : '127.0.0.1'; |
@@ -52,6 +55,9 @@ discard block |
||
| 52 | 55 | return new ArrayCache(); |
| 53 | 56 | } |
| 54 | 57 | |
| 58 | + /** |
|
| 59 | + * @param integer $port |
|
| 60 | + */ |
|
| 55 | 61 | private function createMemcache($host, $port) |
| 56 | 62 | { |
| 57 | 63 | $memcache = new \Memcache(); |
@@ -74,6 +80,9 @@ discard block |
||
| 74 | 80 | return $cache; |
| 75 | 81 | } |
| 76 | 82 | |
| 83 | + /** |
|
| 84 | + * @param integer $port |
|
| 85 | + */ |
|
| 77 | 86 | private function createMemcached($host, $port) |
| 78 | 87 | { |
| 79 | 88 | $memcached = new \Memcached(); |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use PhraseanetSDK\AbstractRepository; |
| 15 | 15 | use PhraseanetSDK\Exception\RuntimeException; |
| 16 | 16 | use Doctrine\Common\Collections\ArrayCollection; |
| 17 | -use PhraseanetSDK\EntityHydrator; |
|
| 18 | 17 | |
| 19 | 18 | class Basket extends AbstractRepository |
| 20 | 19 | { |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use PhraseanetSDK\AbstractRepository; |
| 15 | 15 | use PhraseanetSDK\Exception\RuntimeException; |
| 16 | 16 | use Doctrine\Common\Collections\ArrayCollection; |
| 17 | -use PhraseanetSDK\EntityHydrator; |
|
| 18 | 17 | |
| 19 | 18 | class BasketElement extends AbstractRepository |
| 20 | 19 | { |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use PhraseanetSDK\AbstractRepository; |
| 15 | 15 | use PhraseanetSDK\Exception\RuntimeException; |
| 16 | 16 | use Doctrine\Common\Collections\ArrayCollection; |
| 17 | -use PhraseanetSDK\EntityHydrator; |
|
| 18 | 17 | |
| 19 | 18 | class Databox extends AbstractRepository |
| 20 | 19 | { |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use PhraseanetSDK\AbstractRepository; |
| 15 | 15 | use PhraseanetSDK\Exception\RuntimeException; |
| 16 | 16 | use Doctrine\Common\Collections\ArrayCollection; |
| 17 | -use PhraseanetSDK\EntityHydrator; |
|
| 18 | 17 | |
| 19 | 18 | class DataboxCollection extends AbstractRepository |
| 20 | 19 | { |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use PhraseanetSDK\AbstractRepository; |
| 15 | 15 | use PhraseanetSDK\Exception\RuntimeException; |
| 16 | 16 | use Doctrine\Common\Collections\ArrayCollection; |
| 17 | -use PhraseanetSDK\EntityHydrator; |
|
| 18 | 17 | |
| 19 | 18 | class DataboxDocumentStructure extends AbstractRepository |
| 20 | 19 | { |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use PhraseanetSDK\AbstractRepository; |
| 15 | 15 | use PhraseanetSDK\Exception\RuntimeException; |
| 16 | 16 | use Doctrine\Common\Collections\ArrayCollection; |
| 17 | -use PhraseanetSDK\EntityHydrator; |
|
| 18 | 17 | |
| 19 | 18 | class DataboxStatus extends AbstractRepository |
| 20 | 19 | { |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use PhraseanetSDK\AbstractRepository; |
| 15 | 15 | use PhraseanetSDK\Exception\RuntimeException; |
| 16 | 16 | use Doctrine\Common\Collections\ArrayCollection; |
| 17 | -use PhraseanetSDK\EntityHydrator; |
|
| 18 | 17 | |
| 19 | 18 | class DataboxTermsOfUse extends AbstractRepository |
| 20 | 19 | { |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use PhraseanetSDK\AbstractRepository; |
| 15 | 15 | use PhraseanetSDK\Exception\RuntimeException; |
| 16 | 16 | use Doctrine\Common\Collections\ArrayCollection; |
| 17 | -use PhraseanetSDK\EntityHydrator; |
|
| 18 | 17 | |
| 19 | 18 | class Feed extends AbstractRepository |
| 20 | 19 | { |