From 0a9371f99f05786068d6f6a72b9a717ec24690a8 Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Tue, 19 Sep 2023 16:06:40 +0200 Subject: Migrate applications away from deprecated ILogger MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- .../lib/Controller/UserStatusController.php | 36 +++++----------------- 1 file changed, 8 insertions(+), 28 deletions(-) (limited to 'apps/user_status/lib') diff --git a/apps/user_status/lib/Controller/UserStatusController.php b/apps/user_status/lib/Controller/UserStatusController.php index f3757f38357..321555a45f2 100644 --- a/apps/user_status/lib/Controller/UserStatusController.php +++ b/apps/user_status/lib/Controller/UserStatusController.php @@ -42,41 +42,21 @@ use OCP\AppFramework\Http\DataResponse; use OCP\AppFramework\OCS\OCSBadRequestException; use OCP\AppFramework\OCS\OCSNotFoundException; use OCP\AppFramework\OCSController; -use OCP\ILogger; use OCP\IRequest; +use Psr\Log\LoggerInterface; /** * @psalm-import-type UserStatusPrivate from ResponseDefinitions */ class UserStatusController extends OCSController { - - /** @var string */ - private $userId; - - /** @var ILogger */ - private $logger; - - /** @var StatusService */ - private $service; - - /** - * StatusesController constructor. - * - * @param string $appName - * @param IRequest $request - * @param string $userId - * @param ILogger $logger; - * @param StatusService $service - */ - public function __construct(string $appName, - IRequest $request, - string $userId, - ILogger $logger, - StatusService $service) { + public function __construct( + string $appName, + IRequest $request, + private string $userId, + private LoggerInterface $logger, + private StatusService $service, + ) { parent::__construct($appName, $request); - $this->userId = $userId; - $this->logger = $logger; - $this->service = $service; } /** -- cgit v1.2.3