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

ProxiesBootloader::defineDependencies()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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
}