for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
*/
namespace SprykerEco\Client\CrefoPay;
use Spryker\Client\Kernel\AbstractDependencyProvider;
use Spryker\Client\Kernel\Container;
use SprykerEco\Client\CrefoPay\Dependency\Client\CrefoPayToZedRequestClientBridge;
class CrefoPayDependencyProvider extends AbstractDependencyProvider
{
public const CLIENT_ZED_REQUEST = 'CLIENT_ZED_REQUEST';
* @param \Spryker\Client\Kernel\Container $container
*
* @return \Spryker\Client\Kernel\Container
public function provideServiceLayerDependencies(Container $container): Container
$container = parent::provideServiceLayerDependencies($container);
$container = $this->addZedRequestClient($container);
return $container;
}
protected function addZedRequestClient(Container $container): Container
$container->set(static::CLIENT_ZED_REQUEST, function (Container $container) {
return new CrefoPayToZedRequestClientBridge($container->getLocator()->zedRequest()->client());
});