Test Failed
Push — master ( 6db55f...0b650e )
by Chris
21:02
created

SlimRouterServiceProvider::factory()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Leonidas\Framework\Site\Provider\League;
4
5
use Leonidas\Framework\Provider\League\Abstracts\AbstractLeagueServiceFactory;
6
use Leonidas\Framework\Site\Provider\SlimRouterProvider;
7
use Panamax\Contracts\ServiceFactoryInterface;
8
use Slim\Interfaces\RouteCollectorProxyInterface;
9
10
class SlimRouterServiceProvider extends AbstractLeagueServiceFactory
11
{
12
    protected function id(): string
13
    {
14
        return 'router';
15
    }
16
17
    protected function types(): array
18
    {
19
        return [RouteCollectorProxyInterface::class];
20
    }
21
22
    protected function factory(): ServiceFactoryInterface
23
    {
24
        return new SlimRouterProvider();
25
    }
26
}
27