コード例 #1
0
 /**
  * Create a new instance of KeyPairProvider for the given domain.
  *
  * @param string $domain
  *
  * @return KeyPairProvider
  */
 public function createKeyPairProvider($domain)
 {
     $provider = new KeyPairProvider($this->keyPairManager, $this->storageFactory->createKeyPairStorage($domain));
     $provider->setLogger($this->logger);
     return $provider;
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 public function storeKeyPair(KeyPair $keyPair)
 {
     $this->register($keyPair);
     parent::storeKeyPair($keyPair);
 }
コード例 #3
0
 public function test storeKeyPair stores the given keyPair()
 {
     $dummyKeyPair = $this->prophesize(KeyPair::class)->reveal();
     $this->mockStorage->store($dummyKeyPair)->shouldBeCalled();
     $this->service->storeKeyPair($dummyKeyPair);
 }