for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Spryker Commerce OS.
* For full license information, please view the LICENSE file that was distributed with this source code.
*/
declare(strict_types = 1);
namespace Pyz\Yves\CustomerFullNameWidget;
use Spryker\Yves\Kernel\AbstractBundleDependencyProvider;
use Spryker\Yves\Kernel\Container;
class CustomerFullNameWidgetDependencyProvider extends AbstractBundleDependencyProvider
{
public const CLIENT_CUSTOMER = 'CLIENT_CUSTOMER';
public function provideDependencies(Container $container): Container
$container = parent::provideDependencies($container);
$container = $this->addCustomerClient($container);
return $container;
}
protected function addCustomerClient(Container $container): Container
$container->set(static::CLIENT_CUSTOMER, function (Container $container) {
return $container->getLocator()->customer()->client();
});