]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/filter/payment/class_PaymentDiscoveryFilter.php
Continued:
[core.git] / framework / main / classes / filter / payment / class_PaymentDiscoveryFilter.php
index c89e7d312dc7d461c0eb4c86e098dc8526ab64ae..1536aec810f5c2b0bf8b265e934e4eaf4706fb42 100644 (file)
@@ -72,7 +72,7 @@ class PaymentDiscoveryFilter extends BaseFilter implements Filterable {
                // Is the resolver set?
                if (is_null($resolverInstance)) {
                        // Throw an exception here
-                       throw new NullPointerException($filterInstance, self::EXCEPTION_IS_NULL_POINTER);
+                       throw new NullPointerException($filterInstance, FrameworkInterface::EXCEPTION_IS_NULL_POINTER);
                }
 
                // Get the action name from resolver
@@ -123,7 +123,7 @@ class PaymentDiscoveryFilter extends BaseFilter implements Filterable {
                        $discoveryInstance->discover($requestInstance);
 
                        // Remember this instance if all wents fine
-                       ObjectRegistry::getRegistry()->addInstance('payments', $discoveryInstance);
+                       ObjectRegistry::getRegistry('generic')->addInstance('payments', $discoveryInstance);
                } catch (NoConfigEntryException $e) {
                        // Something bad happend
                        $requestInstance->setIsRequestValid(FALSE);