Closed dpgover closed 6 years ago
GatewayManager, line 50:
if(!isset($this->gateways[$class])){ $gateway = $this->factory->create($class, null, $this->app['request']); $gateway->initialize($this->getConfig($class)); $this->gateways[$class] = $gateway; }
The config gets checked for the classname instead of the gateways name. I think it should be:
if(!isset($this->gateways[$class])){ $gateway = $this->factory->create($class, null, $this->app['request']); $gateway->initialize($this->getConfig($gateway->getName())); $this->gateways[$class] = $gateway; }
That way, I can pass a custom gateway without having to use the fully qualified name of the class on the config file...
Am I correct?
Thanks
@barryvdh what do you think about @dpgover solution?
Think so indeed
@barryvdh may I create a PR with this changes?
Sure
@barryvdh please see PR
@barryvdh @siarheipashkevich this PR seems to break the default gateway configs. see my comment here.
Reverted
GatewayManager, line 50:
The config gets checked for the classname instead of the gateways name. I think it should be:
That way, I can pass a custom gateway without having to use the fully qualified name of the class on the config file...
Am I correct?
Thanks