Passed
Pull Request — master (#213)
by Ruslan
18:45
created

RouterDependencyProvider::getRouterPlugins()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 5
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
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\Router;
9
10
use Spryker\Zed\Router\Communication\Plugin\Router\BackendGatewayRouterPlugin;
11
use Spryker\Zed\Router\Communication\Plugin\Router\BackofficeRouterPlugin;
12
use Spryker\Zed\Router\Communication\Plugin\Router\MerchantPortalRouterPlugin;
13
use Spryker\Zed\Router\Communication\Plugin\Router\ZedDevelopmentRouterPlugin;
14
use Spryker\Zed\Router\Communication\Plugin\Router\ZedRouterPlugin;
15
use Spryker\Zed\Router\RouterDependencyProvider as SprykerRouterDependencyProvider;
16
17
class RouterDependencyProvider extends SprykerRouterDependencyProvider
18
{
19
    /**
20
     * @return array<\Spryker\Zed\RouterExtension\Dependency\Plugin\RouterPluginInterface>
21
     */
22
    protected function getBackofficeRouterPlugins(): array
23
    {
24
        return [
25
            new BackofficeRouterPlugin(),
26
        ];
27
    }
28
29
    /**
30
     * @return array<\Spryker\Zed\RouterExtension\Dependency\Plugin\RouterPluginInterface>
31
     */
32
    protected function getBackendGatewayRouterPlugins(): array
33
    {
34
        return [
35
            new BackendGatewayRouterPlugin(),
36
        ];
37
    }
38
39
    /**
40
     * @return array<\Spryker\Zed\RouterExtension\Dependency\Plugin\RouterPluginInterface>
41
     */
42
    protected function getBackendApiRouterPlugins(): array
43
    {
44
        return [];
45
    }
46
47
    /**
48
     * @return array<\Spryker\Zed\RouterExtension\Dependency\Plugin\RouterPluginInterface>
49
     */
50
    protected function getMerchantPortalRouterPlugins(): array
51
    {
52
        return [
53
            new MerchantPortalRouterPlugin(),
54
        ];
55
    }
56
57
    /**
58
     * @return array<\Spryker\Zed\RouterExtension\Dependency\Plugin\RouterPluginInterface>
59
     */
60
    protected function getRouterPlugins(): array
61
    {
62
        return [
63
            new ZedRouterPlugin(),
64
            new ZedDevelopmentRouterPlugin(),
65
        ];
66
    }
67
}
68