コード例 #1
0
ファイル: FallbackRegistry.php プロジェクト: eamador/Payum
 /**
  * {@inheritDoc}
  */
 public function getStorage($class)
 {
     try {
         return $this->registry->getStorage($class);
     } catch (InvalidArgumentException $e) {
         return $this->fallbackRegistry->getStorage($class);
     }
 }
コード例 #2
0
ファイル: DynamicRegistry.php プロジェクト: eamador/Payum
 /**
  * {@inheritDoc}
  */
 public function getStorage($class)
 {
     return $this->staticRegistry->getStorage($class);
 }