ArvatoRssDependencyProvider::addZedRequestClient()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 7
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * MIT License
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
namespace SprykerEco\Client\ArvatoRss;
9
10
use Spryker\Client\Kernel\AbstractDependencyProvider;
11
use Spryker\Client\Kernel\Container;
12
13
class ArvatoRssDependencyProvider extends AbstractDependencyProvider
14
{
15
    public const CLIENT_ZED_REQUEST = 'CLIENT_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 = $this->addZedRequestClient($container);
25
26
        return $container;
27
    }
28
29
    /**
30
     * @param \Spryker\Client\Kernel\Container $container
31
     *
32
     * @return \Spryker\Client\Kernel\Container
33
     */
34
    protected function addZedRequestClient(Container $container)
35
    {
36
        $container[static::CLIENT_ZED_REQUEST] = function (Container $container) {
37
            return $container->getLocator()->zedRequest()->client();
38
        };
39
40
        return $container;
41
    }
42
}
43