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\Easycredit;
use Spryker\Zed\Kernel\AbstractBundleDependencyProvider;
use Spryker\Zed\Kernel\Container;
use Spryker\Zed\Money\Communication\Plugin\MoneyPlugin;
use SprykerEco\Service\Easycredit\Dependency\Service\EasycreditToUtilEncodingServiceBridge;
class EasycreditDependencyProvider extends AbstractBundleDependencyProvider
{
public const SERVICE_UTIL_ENCODING = 'SERVICE_UTIL_ENCODING';
public const PLUGIN_MONEY = 'PLUGIN_MONEY';
* @param \Spryker\Zed\Kernel\Container $container
*
* @return \Spryker\Zed\Kernel\Container
public function provideBusinessLayerDependencies(Container $container): Container
$container = $this->addUtilEncodingService($container);
$container = $this->addPluginMoney($container);
return $container;
}
protected function addUtilEncodingService(Container $container): Container
$container[static::SERVICE_UTIL_ENCODING] = function (Container $container) {
return new EasycreditToUtilEncodingServiceBridge($container->getLocator()->utilEncoding()->service());
};
protected function addPluginMoney(Container $container): Container
$container[static::PLUGIN_MONEY] = function () {
return new MoneyPlugin();