public function setup()
 {
     parent::setup();
     $this->riakKVServiceClient = new RiakKVServiceClient();
     $this->riakKVServiceClient->contentTypeNormalizer = $this->getService("kbrw.content.type.normalizer");
     $this->riakKVServiceClient->serializer = $this->getService("jms_serializer");
     $this->riakKVServiceClient->logger = $this->getService("logger");
 }
예제 #2
0
 public function setup()
 {
     parent::setup();
     // create bucket
     $this->bucket = new Bucket("foo");
     $this->bucket->getProps()->setNVal(5);
     // insert bucket into a cluster
     $riakKVServiceClient = new MockedRiakKVServiceClient($this->getContainer());
     $riakBucketServiceClient = new MockedRiakBucketServiceClient($this->getContainer());
     $guzzleClientProviderTest = new SimpleGuzzleClientProviderTest();
     $guzzleClientProvider = $guzzleClientProviderTest->getGuzzleClientProvider();
     $eventDispatcher = $this->getService("event_dispatcher");
     $this->cluster = new Cluster("backend", "http", "localhost", "1234", "frontend", 50, array(), $guzzleClientProvider, $eventDispatcher, $riakBucketServiceClient, $riakKVServiceClient);
     $this->cluster->addBucket($this->bucket);
 }
 public function setup()
 {
     parent::setup();
     $this->serializer = $this->getService("jms_serializer");
 }