messageCache = $messageCache; $this->titleFormatter = $titleFormatter; $this->hookContainer = $hookContainer; $this->userIdentityUtils = $userIdentityUtils; $this->languageFactory = $languageFactory; $this->logger = $logger; } public function getStatusFormatter( MessageLocalizer $messageLocalizer ): StatusFormatter { return new StatusFormatter( $messageLocalizer, $this->messageCache, $this->logger ); } public function getBlockErrorFormatter( LocalizationContext $context ): BlockErrorFormatter { return new BlockErrorFormatter( $this->titleFormatter, $this->hookContainer, $this->userIdentityUtils, $this->languageFactory, $context ); } }