コード例 #1
0
 /**
  * @return MWP_Signer_Interface
  */
 public function createSigner()
 {
     if ($this->getSystemEnvironment()->isOpenSslLibraryEnabled()) {
         return MWP_Signer_Factory::createOpenSslSigner();
     }
     return MWP_Signer_Factory::createPhpSecLibSigner();
 }
コード例 #2
0
ファイル: Production.php プロジェクト: jimrucinski/Vine
 /**
  * @return MWP_Signer_Interface
  */
 public function createSigner()
 {
     if ($this->getParameter('prefer_phpseclib')) {
         return MWP_Signer_Factory::createPhpSecLibSigner();
     }
     return MWP_Signer_Factory::createSigner();
 }