[FEATURE] Inject logger into newly created objects 01/54101/9
authorMarkus Klein <markus.klein@typo3.org>
Sun, 10 Sep 2017 12:06:11 +0000 (14:06 +0200)
committerHelmut Hummel <typo3@helhum.io>
Mon, 11 Sep 2017 11:23:00 +0000 (13:23 +0200)
commitad2b3373573884569aaac9018a4590c073b1c4e8
tree755b35b05b4bc2606366ad5464c7ee1e49ed95ee
parent71950c5438d4ee5095ff8c1f4b63b9d51627e739
[FEATURE] Inject logger into newly created objects

Instantiating new objects with makeInstance or the ObjectManager
will automatically inject a logger into the new objects, if those
implement the LoggerAwareInterface.

Resolves: #82441
Releases: master
Change-Id: I38e1a4619857f3fc2d88b0b95a9721b289c679d3
Reviewed-on: https://review.typo3.org/54101
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Helmut Hummel <typo3@helhum.io>
Tested-by: Helmut Hummel <typo3@helhum.io>
typo3/sysext/core/Classes/Utility/GeneralUtility.php
typo3/sysext/core/Documentation/Changelog/master/Feature-82441-InjectLoggerWhenCreatingObjects.rst [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Utility/Fixtures/GeneralUtilityMakeInstanceInjectLoggerFixture.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php