Merge pull request #4332 from nextcloud/techdebt/noid/use-psr-logger-in-event-dispatcher

EventDispatcher uses PSR Logger now
This commit is contained in:
Joas Schilling 2020-10-09 10:10:08 +02:00 committed by GitHub
commit 5491c1accb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,9 +29,9 @@ use OCA\Talk\Room;
use OCA\Talk\Webinary;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\IDBConnection;
use OCP\ILogger;
use OCP\Security\IHasher;
use OCP\Security\ISecureRandom;
use Psr\Log\LoggerInterface;
use Test\TestCase;
class RoomTest extends TestCase {
@ -39,7 +39,7 @@ class RoomTest extends TestCase {
$dispatcher = new EventDispatcher(
new \Symfony\Component\EventDispatcher\EventDispatcher(),
\OC::$server,
$this->createMock(ILogger::class)
$this->createMock(LoggerInterface::class)
);
$dispatcher->addListener(Room::EVENT_PASSWORD_VERIFY, static function (VerifyRoomPasswordEvent $event) {
$password = $event->getPassword();