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\Zed\AdyenApi;
use Spryker\Zed\Kernel\AbstractBundleDependencyProvider;
use Spryker\Zed\Kernel\Container;
use SprykerEco\Zed\AdyenApi\Dependency\Service\AdyenApiToUtilEncodingServiceBridge;
class AdyenApiDependencyProvider extends AbstractBundleDependencyProvider
{
public const SERVICE_UTIL_ENCODING = 'SERVICE_UTIL_ENCODING';
* @param \Spryker\Zed\Kernel\Container $container
*
* @return \Spryker\Zed\Kernel\Container
public function provideBusinessLayerDependencies(Container $container): Container
$container = parent::provideBusinessLayerDependencies($container);
$container = $this->addUtilEncodingService($container);
return $container;
}
protected function addUtilEncodingService(Container $container): Container
$container[static::SERVICE_UTIL_ENCODING] = function (Container $container) {
return new AdyenApiToUtilEncodingServiceBridge($container->getLocator()->utilEncoding()->service());
};