1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
/* |
6
|
|
|
* This file is part of the Valkyrja Framework package. |
7
|
|
|
* |
8
|
|
|
* (c) Melech Mizrachi <[email protected]> |
9
|
|
|
* |
10
|
|
|
* For the full copyright and license information, please view the LICENSE |
11
|
|
|
* file that was distributed with this source code. |
12
|
|
|
*/ |
13
|
|
|
|
14
|
|
|
namespace Valkyrja\Container; |
15
|
|
|
|
16
|
|
|
use Valkyrja\Container\Contract\Service; |
17
|
|
|
use Valkyrja\Container\Support\Provider; |
18
|
|
|
|
19
|
|
|
/** |
20
|
|
|
* Class Data. |
21
|
|
|
* |
22
|
|
|
* @author Melech Mizrachi |
23
|
|
|
*/ |
24
|
|
|
class Data |
25
|
|
|
{ |
26
|
|
|
/** |
27
|
|
|
* @param array<class-string, class-string> $aliases |
|
|
|
|
28
|
|
|
* @param array<class-string, class-string> $contextServices |
29
|
|
|
* @param array<class-string, class-string> $deferred |
30
|
|
|
* @param array<class-string, callable> $deferredCallback |
31
|
|
|
* @param array<class-string<Service>, class-string<Service>> $services |
32
|
|
|
* @param array<class-string, class-string> $singletons |
33
|
|
|
* @param class-string<Provider>[] $providers |
34
|
|
|
*/ |
35
|
|
|
public function __construct( |
36
|
|
|
public array $aliases = [], |
37
|
|
|
public array $contextServices = [], |
38
|
|
|
public array $deferred = [], |
39
|
|
|
public array $deferredCallback = [], |
40
|
|
|
public array $services = [], |
41
|
|
|
public array $singletons = [], |
42
|
|
|
public array $providers = [], |
43
|
|
|
) { |
44
|
|
|
} |
45
|
|
|
} |
46
|
|
|
|