Commit b502cb0
committed
feature #1055 Add option to specify version in add lines requires (HypeMC)
This PR was merged into the 2.x branch.
Discussion
----------
Add option to specify version in add lines requires
Currently, when requiring `symfony/panther`, Flex adds the following two lines to `phpunit.dist.xml`:
```diff
<extensions>
+ <bootstrap class="Symfony\Component\Panther\ServerExtension" />
+ <extension class="Symfony\Component\Panther\ServerExtension" />
</extensions>
```
This isn't entirely correct: the `extension` tag is used for PHPUnit <10, while `bootstrap` is used for PHPUnit >=10.
This PR adds support for specifying the required package version for each line, so only the appropriate one is added.
Recipes PR: symfony/recipes#1422
Commits
-------
3319fcf Add option to specify version in add lines requiresFile tree
2 files changed
+87
-4
lines changed- src/Configurator
- tests/Configurator
2 files changed
+87
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
241 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
242 | 246 | | |
243 | 247 | | |
244 | 248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
324 | 398 | | |
325 | 399 | | |
326 | 400 | | |
| |||
611 | 685 | | |
612 | 686 | | |
613 | 687 | | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
614 | 693 | | |
615 | 694 | | |
616 | 695 | | |
617 | | - | |
618 | | - | |
| 696 | + | |
| 697 | + | |
619 | 698 | | |
620 | 699 | | |
621 | 700 | | |
| |||
0 commit comments