Repository navigation
Commit 2c5d712
committed
Switch DI container from illuminate/container to entropy/entropy
Replace the Illuminate container with entropy/entropy. RectorConfig extends
Entropy\Container\Container and reuses the container's own primitives:
- register() makes a factory-less service discoverable by contract, so
findByContract() returns it without any tag layer (tag/tagged/autotag gone)
- findByContract() returns a plain 0-indexed list, so variadic spreads such as
new NodeTraverser(...$visitors) stay positional
- afterResolving() runs setter injection once after a service is built, drained
at the outermost make() so aggregate cycles (type mappers <-> the collection
they belong to) resolve without a loop
- forgetByContract() drops a service from the container; RectorConfig extends it
to clear its own bookkeeping, so skip()/test reset need no reflection
Removed along the way: the giveTagged() contextual-binding API, service aliases
(the one alias was already backed by a factory), the RegisteredService value
object, and the ContainerMemento reflection helper. No WeakMap, to keep the
source downgradable; service build failures propagate as entropy throws them.1 parent bc7a659 commit 2c5d712
20 files changed
Lines changed: 185 additions & 382 deletions
File tree
- rules/CodingStyle/ClassNameImport
- src
- Configuration
- Config
- Console/Output
- DependencyInjection
- Laravel
- NodeNameResolver
- NodeTypeResolver
- PHPStan/Scope
- StaticTypeMapper/Mapper
- Testing/PHPUnit
- Util/Reflection
- functions
- tests
- Configuration
- DependencyInjection
- Issues/Issue9388/config
- PHPStanStaticTypeMapper
- Skipper/Skipper
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| |||
115 | 114 | | |
116 | 115 | | |
117 | 116 | | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | 117 | | |
128 | 118 | | |
129 | 119 | | |
130 | 120 | | |
131 | 121 | | |
132 | | - | |
133 | | - | |
| 122 | + | |
134 | 123 | | |
135 | 124 | | |
136 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
42 | 33 | | |
43 | 34 | | |
44 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | | - | |
21 | 19 | | |
| 20 | + | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
60 | 62 | | |
61 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
62 | 71 | | |
63 | 72 | | |
64 | 73 | | |
| |||
274 | 283 | | |
275 | 284 | | |
276 | 285 | | |
277 | | - | |
| 286 | + | |
278 | 287 | | |
279 | 288 | | |
280 | 289 | | |
281 | 290 | | |
282 | | - | |
283 | | - | |
284 | 291 | | |
285 | 292 | | |
286 | 293 | | |
| |||
304 | 311 | | |
305 | 312 | | |
306 | 313 | | |
307 | | - | |
308 | 314 | | |
309 | 315 | | |
310 | 316 | | |
| |||
500 | 506 | | |
501 | 507 | | |
502 | 508 | | |
503 | | - | |
| 509 | + | |
504 | 510 | | |
505 | 511 | | |
506 | 512 | | |
507 | 513 | | |
508 | | - | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
509 | 520 | | |
510 | | - | |
| 521 | + | |
511 | 522 | | |
512 | | - | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
513 | 536 | | |
514 | 537 | | |
515 | 538 | | |
516 | | - | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
517 | 542 | | |
518 | 543 | | |
519 | | - | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
520 | 567 | | |
521 | | - | |
| 568 | + | |
| 569 | + | |
522 | 570 | | |
523 | | - | |
524 | | - | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
525 | 593 | | |
526 | 594 | | |
527 | 595 | | |
528 | | - | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
529 | 601 | | |
530 | 602 | | |
531 | 603 | | |
| |||
559 | 631 | | |
560 | 632 | | |
561 | 633 | | |
562 | | - | |
| 634 | + | |
563 | 635 | | |
564 | 636 | | |
565 | 637 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
23 | | - | |
24 | 22 | | |
25 | 23 | | |
26 | 24 | | |
| |||
173 | 171 | | |
174 | 172 | | |
175 | 173 | | |
176 | | - | |
| 174 | + | |
177 | 175 | | |
178 | 176 | | |
179 | 177 | | |
| |||
280 | 278 | | |
281 | 279 | | |
282 | 280 | | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
| 281 | + | |
292 | 282 | | |
293 | 283 | | |
294 | 284 | | |
| |||
1114 | 1104 | | |
1115 | 1105 | | |
1116 | 1106 | | |
1117 | | - | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
1118 | 1111 | | |
1119 | | - | |
| 1112 | + | |
1120 | 1113 | | |
1121 | 1114 | | |
1122 | 1115 | | |
| |||
1130 | 1123 | | |
1131 | 1124 | | |
1132 | 1125 | | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
1136 | | - | |
1137 | | - | |
| 1126 | + | |
1138 | 1127 | | |
1139 | 1128 | | |
1140 | 1129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments