1 | <?php |
||
23 | class SystemManager implements SystemInterface, LoggerAwareInterface |
||
24 | { |
||
25 | use LoggerAwareTrait; |
||
26 | |||
27 | /** |
||
28 | * @var SystemInterface[] |
||
29 | */ |
||
30 | private const DEFAULT_SYSTEMS = [ |
||
31 | System\OffsetSystem::class, |
||
32 | System\TypeHintSystem::class, |
||
33 | System\DescriptionSystem::class, |
||
34 | System\ImplementationSystem::class, |
||
35 | |||
36 | System\Provider\FieldSystem::class, |
||
37 | System\Provider\ArgumentSystem::class, |
||
38 | System\Provider\DocumentSystem::class, |
||
39 | System\Provider\DirectivesSystem::class, |
||
40 | System\Provider\ArgumentInvocationSystem::class, |
||
41 | ]; |
||
42 | |||
43 | /** |
||
44 | * @var array|SystemInterface[] |
||
45 | */ |
||
46 | private $systems = []; |
||
47 | |||
48 | /** |
||
49 | * SystemManager constructor. |
||
50 | * @param Builder $process |
||
51 | * @param Pipeline $pipeline |
||
52 | */ |
||
53 | 119 | public function __construct(Builder $process, Pipeline $pipeline) |
|
57 | |||
58 | /** |
||
59 | * @param Builder $process |
||
60 | * @param Pipeline $pipeline |
||
61 | * @return void |
||
62 | */ |
||
63 | 119 | private function boot(Builder $process, Pipeline $pipeline): void |
|
69 | |||
70 | /** |
||
71 | * @param Definition $def |
||
72 | * @param RuleInterface $ast |
||
73 | */ |
||
74 | 119 | public function resolve(Definition $def, RuleInterface $ast): void |
|
86 | } |
||
87 |