Passed
Pull Request — dev (#9)
by Andrey
08:48 queued 04:25
created

AmazonPayDependencyProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 16
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
    const CLIENT_ZED_REQUEST = 'zed request';
16
17
    /**
18
     * @param \Spryker\Client\Kernel\Container $container
19
     *
20
     * @return \Spryker\Client\Kernel\Container
21
     */
22
    public function provideServiceLayerDependencies(Container $container)
23
    {
24
        $container[static::CLIENT_ZED_REQUEST] = function (Container $container) {
25
            return $container->getLocator()->zedRequest()->client();
26
        };
27
28
        return $container;
29
    }
30
}
31