Passed
Push — master ( 56c691...5e186e )
by Anton
02:05
created

ProxiesBootloader   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A defineDependencies() 0 4 1
1
<?php
2
/**
3
 * Spiral Framework.
4
 *
5
 * @license   MIT
6
 * @author    Anton Titov (Wolfy-J)
7
 */
8
declare(strict_types=1);
9
10
namespace Spiral\Bootloader\Cycle;
11
12
use Cycle\ORM\Promise\Factory as ProxyFactory;
13
use Cycle\ORM\Promise\MaterializerInterface;
14
use Cycle\ORM\Promise\Materizalizer\EvalMaterializer;
15
use Cycle\ORM\PromiseFactoryInterface;
16
use Spiral\Boot\Bootloader\Bootloader;
17
use Spiral\Boot\Bootloader\DependedInterface;
18
19
final class ProxiesBootloader extends Bootloader implements DependedInterface
20
{
21
    public const SINGLETONS = [
22
        PromiseFactoryInterface::class => ProxyFactory::class,
23
        MaterializerInterface::class   => EvalMaterializer::class
24
    ];
25
26
    /**
27
     * @return array
28
     */
29
    public function defineDependencies(): array
30
    {
31
        return [
32
            CycleBootloader::class
33
        ];
34
    }
35
}