Commit 54d3d63
committed
Centralize input stream in base Input class
Add StreamableInputInterface
Removed commented code
Prevent BC by looking for QuestionHelper::
Logic fixes
Check for that implements StreamableInputInterface
Rollback E_USER_DEPRECATED notice in getInputStream
Remove legacy tests to avoid KO because of deprecations
Add missing use
Keep old tests marked as legacy
Undeprecate getInputStream, CS Fixes
Move legacy tests in separated class
Revert separated legacy test class
Keep legacy createInputInterfaceMock()
Depreciate QuestionHelper::getInputStream()1 parent f400f01 commit 54d3d63Copy full SHA for 54d3d63
File tree
Expand file treeCollapse file tree
7 files changed
+502
-52
lines changedOpen diff view settings
Filter options
- src/Symfony/Component/Console
- Helper
- Input
- Tests
- Helper
- Input
Expand file treeCollapse file tree
7 files changed
+502
-52
lines changedOpen diff view settings
Collapse file
src/Symfony/Component/Console/Application.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Application.php+14-2Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
16 | 16 | |
17 | 17 | |
18 | 18 | |
| 19 | + |
19 | 20 | |
20 | 21 | |
21 | 22 | |
| ||
769 | 770 | |
770 | 771 | |
771 | 772 | |
772 | | - |
773 | | - |
| 773 | + |
| 774 | + |
| 775 | + |
| 776 | + |
| 777 | + |
| 778 | + |
| 779 | + |
| 780 | + |
| 781 | + |
| 782 | + |
| 783 | + |
| 784 | + |
| 785 | + |
774 | 786 | |
775 | 787 | |
776 | 788 | |
|
Collapse file
src/Symfony/Component/Console/Helper/QuestionHelper.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Helper/QuestionHelper.php+18-1Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
14 | 14 | |
15 | 15 | |
16 | 16 | |
| 17 | + |
17 | 18 | |
18 | 19 | |
19 | 20 | |
| ||
52 | 53 | |
53 | 54 | |
54 | 55 | |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
55 | 60 | |
56 | 61 | |
57 | 62 | |
| ||
68 | 73 | |
69 | 74 | |
70 | 75 | |
| 76 | + |
| 77 | + |
| 78 | + |
71 | 79 | |
72 | 80 | |
73 | 81 | |
74 | 82 | |
75 | 83 | |
76 | 84 | |
| 85 | + |
| 86 | + |
77 | 87 | |
78 | 88 | |
79 | 89 | |
| ||
84 | 94 | |
85 | 95 | |
86 | 96 | |
| 97 | + |
| 98 | + |
| 99 | + |
87 | 100 | |
88 | 101 | |
89 | | - |
| 102 | + |
90 | 103 | |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
91 | 108 | |
92 | 109 | |
93 | 110 | |
|
Collapse file
src/Symfony/Component/Console/Input/Input.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Input/Input.php+18-1Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
25 | 25 | |
26 | 26 | |
27 | 27 | |
28 | | - |
| 28 | + |
29 | 29 | |
30 | 30 | |
31 | 31 | |
32 | 32 | |
33 | 33 | |
| 34 | + |
34 | 35 | |
35 | 36 | |
36 | 37 | |
| ||
233 | 234 | |
234 | 235 | |
235 | 236 | |
| 237 | + |
| 238 | + |
| 239 | + |
| 240 | + |
| 241 | + |
| 242 | + |
| 243 | + |
| 244 | + |
| 245 | + |
| 246 | + |
| 247 | + |
| 248 | + |
| 249 | + |
| 250 | + |
| 251 | + |
| 252 | + |
236 | 253 | |
Collapse file
src/Symfony/Component/Console/Input/StreamableInputInterface.php
Copy file name to clipboard+37Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
Collapse file
src/Symfony/Component/Console/Tests/ApplicationTest.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Tests/ApplicationTest.php+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1099 | 1099 | |
1100 | 1100 | |
1101 | 1101 | |
1102 | | - |
| 1102 | + |
1103 | 1103 | |
1104 | 1104 | |
1105 | 1105 | |
|
0 commit comments