Revision: Inject Logger instead of LoggerSpi
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 10 Sep 2019 02:24:18 +0000 (03:24 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 10 Sep 2019 02:24:18 +0000 (03:24 +0100)
commita52e7964735128b48868fb8b7fef7f4d7f8e75ed
tree17056c12ca4f7f6bee9cc0480bb724440c5e7f43
parent982027f9d5636e6c9f2bf17b020742498cc6c014
Revision: Inject Logger instead of LoggerSpi

For consistency with other services and entry points.
The caller decides on the channel name. This also narrows the
surface area for the DI layer by only requiring LoggerInterface
which is significantly lighter and easier to mock than an entire
LoggerProvider/Spi.

Change-Id: Ia71f2e1c0a1a08c9edf0736eb627c5d4a2dde8d5
includes/Revision/RevisionStoreFactory.php
includes/ServiceWiring.php
tests/phpunit/includes/Revision/RevisionStoreFactoryTest.php