[BUGFIX] Avoid reflection for public property injection
The property injection in the ObjectContainer always did reflect the object and made the property accessible, even if the property was public and therefore accessible by default. With this patch, reflection is avoided for public properties which increases the performance of public property injection a lot. Releases: master, 8.7 Resolves: #83155 Change-Id: I32f7c8e257f65da4a2fce1d7ee515d7954564387 Reviewed-on: https://review.typo3.org/54850 Tested-by:TYPO3com <no-reply@typo3.com> Reviewed-by:
Claus Due <claus@phpmind.net> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by:
Susanne Moog <susanne.moog@typo3.org> Tested-by:
Susanne Moog <susanne.moog@typo3.org>
Showing
- typo3/sysext/extbase/Classes/Object/Container/Container.php 7 additions, 3 deletionstypo3/sysext/extbase/Classes/Object/Container/Container.php
- typo3/sysext/extbase/Tests/Unit/Object/Container/ContainerTest.php 24 additions, 0 deletions...ext/extbase/Tests/Unit/Object/Container/ContainerTest.php
- typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/ContainerPropertyInjectionTestClasses.php 34 additions, 0 deletions...tainer/Fixtures/ContainerPropertyInjectionTestClasses.php
Please register or sign in to comment