49696[TASK] Deprecate Extbase's ArrayUtility
Commit message
Review
-
Code review CR +2
- Christian Kuhn +2
- Susi Moog +1
-
Verified V +2
- Christian Kuhn +2
- Susi Moog +1
- TYPO3com +1 CI
Issues 1
Files 22
- typo3/sysext/backend/Classes/Form/Element/ImageManipulationElement.php+1 −2
- typo3/sysext/core/Classes/Utility/ArrayUtility.php3+161 −19
- typo3/sysext/core/Documentation/Changelog/master/Deprecation-77732-ExtbaseArrayUtility.rstnew+39 −0
- typo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php+292 −6
- typo3/sysext/extbase/Classes/Mvc/Web/Request.php+1 −1
- typo3/sysext/extbase/Classes/Mvc/Web/RequestBuilder.php+7 −3
- typo3/sysext/extbase/Classes/Utility/ArrayUtility.php3+31 −1
- typo3/sysext/fluid/Classes/View/TemplatePaths.php+1 −1
- typo3/sysext/form/Classes/Controller/FormEditorController.php2+2 −3
- typo3/sysext/form/Classes/Controller/FormManagerController.php2+1 −1
- typo3/sysext/form/Classes/Domain/Finishers/AbstractFinisher.php+1 −1
- typo3/sysext/form/Classes/Domain/Model/Renderable/AbstractRenderable.php1+4 −2
- typo3/sysext/form/Classes/Domain/Model/FormDefinition.php+11 −8
- typo3/sysext/form/Classes/Domain/Runtime/FormRuntime.php1+1 −2
- typo3/sysext/form/Classes/Domain/Runtime/FormState.php+1 −1
- typo3/sysext/form/Classes/Hooks/DataStructureIdentifierHook.php+5 −6
- typo3/sysext/form/Classes/Mvc/Configuration/ConfigurationManager.php2+3 −4
- typo3/sysext/form/Classes/Mvc/Configuration/InheritancesResolverService.php1+23 −7
- typo3/sysext/form/Classes/Mvc/Configuration/YamlSource.php1+0 −1
- typo3/sysext/form/Classes/Service/TranslationService.php+1 −1
Review log 4564
Show 2539 earlier messages
-
Benni Mack uploaded patch set 1 08/31/16, 19:18
-
TYPO3com voted on patch set 1 V -1 08/31/16, 19:22 Completed build in 04m 21s on Wed, 31 Aug, 09:22 PM Test Summary: 18650 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-2555
-
Georg Ringer uploaded patch set 2 09/01/16, 07:02
-
TYPO3com voted on patch set 2 V +1 09/01/16, 07:04 Completed build in 02m 45s on Thu, 1 Sep, 09:04 AM Test Summary: 19100 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-2575
-
Georg Ringer uploaded patch set 3 09/01/16, 07:28
-
Mathias Brodala commented on patch set 4 09/01/16, 07:30
Published edit on patch set 3. -
TYPO3com voted on patch set 3 V +1 09/01/16, 07:31 Completed build in 02m 50s on Thu, 1 Sep, 09:31 AM Test Summary: 19100 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-2576
-
TYPO3com voted on patch set 4 V +1 09/01/16, 07:33 Completed build in 02m 44s on Thu, 1 Sep, 09:33 AM Test Summary: 19100 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-2577
-
Andreas Kienast voted on patch set 4 CR +1 09/01/16, 07:35
-
Mathias Brodala commented on patch set 4 09/01/16, 07:35
A few ideas/questions to really deprecate the whole class.ArrayUtility.php:188I think this can be migrated too if the \RuntimException thrown by core ArrayUtility::getValueByPath() is caught.ArrayUtility.php:215This could be covered by the core ArrayUtility::setValueByPath() if we drop the type hint there and merge the two code blocks.ArrayUtility.php:345Can this be moved to the core ArrayUtility? -
Wouter Wolters commented on patch set 4 CR +1 V +1 09/28/16, 11:35
IMHO we can get this in as first step. These are the rather easy deprecations. -
Markus Sommer voted on patch set 4 CR +1 V +1 09/30/16, 12:16
-
Benni Mack commented on patch set 4 CR -2 10/08/16, 19:53
I'd like to have one patch to deprecate the whole class. If anyone feels like taking over to migrate the other methods as mentioned in the main ArrayUtility class, go ahead and finish that one. I hope we get this finished rather sooner than later. -
Benni Mack uploaded patch set 5 10/15/16, 19:01
-
TYPO3com voted on patch set 5 V -1 10/15/16, 19:07 Completed build in 05m 56s on Sat, 15 Oct, 09:07 PM Test Summary: 4 of 19558 failed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-3791
-
Benni Mack voted on patch set 5 CR 0 10/17/16, 10:06
-
Benni Mack uploaded patch set 6 11/09/16, 21:10
-
TYPO3com voted on patch set 6 V -1 11/09/16, 21:15 Completed build in 05m 24s on Wed, 9 Nov, 10:15 PM Test Summary: 55283 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-4744
-
Benni Mack uploaded patch set 7 11/10/16, 12:31
-
TYPO3com voted on patch set 7 V -1 11/10/16, 13:04 Completed build in 27m 32s on Thu, 10 Nov, 02:04 PM Test Summary: 6 of 55283 failed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-4770
-
Markus Sommer uploaded patch set 8 12/03/16, 15:49
-
Markus Sommer uploaded patch set 9 12/03/16, 15:51
-
Markus Sommer commented on patch set 9 12/03/16, 15:52
Core Reformat and remove new usages -
TYPO3com voted on patch set 8 V -1 12/03/16, 15:56 Completed build in 07m 08s on Sat, 3 Dec, 04:56 PM Test Summary: 54 of 54220 failed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-5419
-
TYPO3com voted on patch set 9 V -1 12/03/16, 15:58 Completed build in 06m 17s on Sat, 3 Dec, 04:58 PM Test Summary: 54 of 54220 failed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-5420
-
Markus Sommer commented on patch set 10 12/03/16, 16:08
Published edit on patch set 9. -
TYPO3com voted on patch set 10 V -1 12/03/16, 16:15 Completed build in 06m 50s on Sat, 3 Dec, 05:15 PM Test Summary: 54 of 54310 failed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-5428
-
Susi Moog commented on patch set 10 CR -1 12/03/16, 18:09
InheritanceResolverService: the functionality of getValueByPath of the core ArrayUtility is different to the one from extbase. First of all the array is not handled as reference, second the delimiter is different and has to be set in the call and last the core method throws an exception that has to be caught to simulate the old behaviour. -
Markus Sommer uploaded patch set 11 12/04/16, 10:39
-
Markus Sommer commented on patch set 11 12/04/16, 10:41
At the moment we can not replace the Extbase ArrayUtility in InheritanceResolverService. -
TYPO3com voted on patch set 11 V -1 12/04/16, 10:50 Completed build in 11m 16s on Sun, 4 Dec, 11:50 AM Test Summary: 54340 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-5459
-
Markus Sommer uploaded patch set 12 12/04/16, 10:58
-
Markus Sommer uploaded patch set 13 12/04/16, 11:06
-
TYPO3com voted on patch set 12 V -1 12/04/16, 11:31 Completed build in 33m 13s on Sun, 4 Dec, 12:31 PM Test Summary: 54340 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-5480
-
TYPO3com voted on patch set 13 V +1 12/04/16, 11:43 Completed build in 37m 22s on Sun, 4 Dec, 12:43 PM Test Summary: 54340 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-5486
-
Susi Moog commented on patch set 13 12/07/16, 11:11
InheritancesResolverService.php:379the array is not used as reference, isn't it? -
Susi Moog commented on patch set 13 CR -1 12/08/16, 18:08
on it -
Susi Moog uploaded patch set 14 12/08/16, 19:47
-
TYPO3com voted on patch set 14 V -1 12/08/16, 19:51 Completed build in 04m 15s on Thu, 8 Dec, 08:51 PM Test Summary: 54391 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-5616
-
Christian Kuhn commented on patch set 14 12/08/16, 20:03
minor comments, other than that reads good. Great to see we're down from 3 different ArrayUtility classes to 1.FormEditorController.php:77maybe change the use to ArrayUtility, too?FormManagerController.php:28srsly?ConfigurationManager.php:113mmmh. maybe think about that method, too? or do it later? -
Susi Moog uploaded patch set 15 12/09/16, 11:03
-
Susi Moog commented on patch set 15 12/09/16, 11:06
FormManagerController.php:28ReplyDoneConfigurationManager.php:113ReplyDone -
TYPO3com voted on patch set 15 V +1 12/09/16, 11:07 Completed build in 04m 03s on Fri, 9 Dec, 12:07 PM Test Summary: 54391 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-5643
-
Benni Mack commented on patch set 16 12/09/16, 11:39
Published edit on patch set 15. -
Benni Mack commented on patch set 16 12/09/16, 11:41
FormEditorController.php:129any chance we can use array_replace_recursive here as well? -
TYPO3com voted on patch set 16 V +1 12/09/16, 11:44 Completed build in 04m 31s on Fri, 9 Dec, 12:44 PM Test Summary: 54391 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-5648
-
Susi Moog uploaded patch set 17 12/10/16, 11:58
-
TYPO3com voted on patch set 17 V +1 12/10/16, 12:02 Completed build in 03m 42s on Sat, 10 Dec, 01:02 PM Test Summary: 54391 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-5675
-
Benni Mack voted on patch set 17 CR +1 V +1 12/12/16, 07:27
-
Wouter Wolters commented on patch set 17 CR -1 12/12/16, 21:15
ArrayUtility.php:810empty line missing hereArrayUtility.php:818typehint array missing?AbstractRenderable.php:162is undefined -
Wouter Wolters uploaded patch set 18 12/12/16, 21:28
-
TYPO3com voted on patch set 18 V +1 12/12/16, 21:31 Completed build in 03m 22s on Mon, 12 Dec, 10:31 PM Test Summary: 54391 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-5715
-
Wouter Wolters voted on patch set 18 CR +1 V +1 12/12/16, 21:33
-
Christian Müllenhagen commented on patch set 18 12/12/16, 21:58
ArrayUtility.php:819Here is the type missing. -
Benni Mack uploaded patch set 19 12/13/16, 05:37
-
TYPO3com voted on patch set 19 V +1 12/13/16, 05:42 Completed build in 04m 34s on Tue, 13 Dec, 06:42 AM Test Summary: 54391 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-5718
-
Susi Moog voted on patch set 19 CR +1 V +1 12/13/16, 08:42
-
Christian Kuhn voted on patch set 19 CR +2 V +2 12/13/16, 14:31
-
Gerrit merged patch set 19 12/13/16, 14:31
-
Oliver Hader commented on patch set 20 12/18/16, 10:09
Regression for FormArrayUtilityFormRuntime.php:38This was not replaces in the source - see https://forge.typo3.org/issues/79022YamlSource.php:25This was not replaces in the source - see https://forge.typo3.org/issues/79022 -
Oliver Hader commented on patch set 20 12/18/16, 10:24
-
Oliver Hader commented on patch set 20 12/18/16, 10:39
There are more glitches - EXT:form currently does not render in the frontend. Basically the reason is the core's and Extbase's ArrayUtility::getValueByPath behave differently if an index is not set - the core variant throws an exception... -
Oliver Hader commented on patch set 20 12/18/16, 10:41
And the core uses '/' as delimiter, Extbase uses implicitly a dot '.' -
Susi Moog commented on patch set 20 12/18/16, 10:44
For the exception vs null at getValueByPath see https://review.typo3.org/#/c/49696/20/typo3/sysext/form/Classes/Mvc/Configuration/InheritancesResolverService.php << that should have beed done everywhere the non-exception behaviour is needed, same for the delimiter.