Completed
Push — master ( 8ec1b2...0e3142 )
by Denys
53s queued 35s
created

KernelAppDependencyProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
c 1
b 0
f 0
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRequestExpanderPlugins() 0 5 1
1
<?php
2
3
/**
4
 * This file is part of the Spryker Commerce OS.
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
namespace Pyz\Zed\KernelApp;
9
10
use Spryker\Zed\KernelApp\KernelAppDependencyProvider as SprykerKernelAppDependencyProvider;
11
use Spryker\Zed\MerchantApp\Communication\Plugin\KernelApp\MerchantAppRequestExpanderPlugin;
12
use Spryker\Zed\OauthClient\Communication\Plugin\KernelApp\OAuthRequestExpanderPlugin;
13
14
class KernelAppDependencyProvider extends SprykerKernelAppDependencyProvider
15
{
16
    /**
17
     * @return array<\Spryker\Shared\KernelAppExtension\RequestExpanderPluginInterface>
18
     */
19
    public function getRequestExpanderPlugins(): array
20
    {
21
        return [
22
            new OAuthRequestExpanderPlugin(),
23
            new MerchantAppRequestExpanderPlugin(),
24
        ];
25
    }
26
}
27