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\Service\CrefoPay;
use Spryker\Service\Kernel\AbstractBundleDependencyProvider;
use Spryker\Service\Kernel\Container;
use SprykerEco\Service\CrefoPay\Dependency\Service\CrefoPayToUtilTextServiceBridge;
class CrefoPayDependencyProvider extends AbstractBundleDependencyProvider
{
public const SERVICE_UTIL_TEXT = 'SERVICE.SERVICE_UTIL_TEXT';
* @param Container $container
*
* @return Container
public function provideServiceDependencies(Container $container)
$container = parent::provideServiceDependencies($container);
return $this->addUtilTextService($container);
}
* @param \Spryker\Zed\Kernel\Container $container
* @return \Spryker\Zed\Kernel\Container
protected function addUtilTextService(Container $container): Container
$container->set(static::SERVICE_UTIL_TEXT, function (Container $container) {
return new CrefoPayToUtilTextServiceBridge($container->getLocator()->utilText()->service());
});
return $container;
return $container
Spryker\Service\Kernel\Container
Spryker\Zed\Kernel\Container