Completed
Pull Request — master (#4)
by Andrey
11:13 queued 07:59
created

AmazonpayDependencyProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A provideServiceLayerDependencies() 0 7 1
1
<?php
2
3
/**
4
 * Apache OSL-2
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Client\Amazonpay;
9
10
use Spryker\Client\Kernel\AbstractDependencyProvider;
11
use Spryker\Client\Kernel\Container;
12
13
class AmazonpayDependencyProvider extends AbstractDependencyProvider
14
{
15
16
    const CLIENT_ZED_REQUEST = 'zed request';
17
18
    /**
19
     * @param \Spryker\Client\Kernel\Container $container
20
     *
21
     * @return \Spryker\Client\Kernel\Container
22
     */
23
    public function provideServiceLayerDependencies(Container $container)
24
    {
25
        $container[static::CLIENT_ZED_REQUEST] = function (Container $container) {
26
            return $container->getLocator()->zedRequest()->client();
27
        };
28
29
        return $container;
30
    }
31
32
}
33