@ -33,8 +34,12 @@ class Notifier implements INotifier {
/** @var IFactory */
private $factory;
public function __construct(IFactory $factory) {
/** @var IURLGenerator */
private $url;
public function __construct(IFactory $factory, IURLGenerator $url) {
$this->factory = $factory;
$this->url = $url;
}
public function prepare(INotification $notification, $languageCode) {
@ -53,6 +58,8 @@ class Notifier implements INotifier {
)->setParsedMessage(
$l->t('You have enabled two-factor authentication but have not yet generated backup codes. Be sure to do this in case you lose access to your second factor.')
@ -114,6 +120,15 @@ class NotifierTest extends TestCase {
->with('You have enabled two-factor authentication but have not yet generated backup codes. Be sure to do this in case you lose access to your second factor.')