Skip to content

Commit

Permalink
Fixes #11206
Browse files Browse the repository at this point in the history
IEmailSender not registered in DI container
  • Loading branch information
nul800sebastiaan committed Sep 30, 2021
1 parent 5c0e42e commit c02a97b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Umbraco.Core/Composing/Current.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ public static IVariationContextAccessor VariationContextAccessor

public static IImageUrlGenerator ImageUrlGenerator
=> Factory.GetInstance<IImageUrlGenerator>();

public static IEmailSender EmailSender
=> Factory.GetInstance<IEmailSender>();
#endregion
}
}
2 changes: 2 additions & 0 deletions src/Umbraco.Web/Composing/Current.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ internal static Type DefaultRenderMvcControllerType

public static IVariationContextAccessor VariationContextAccessor => CoreCurrent.VariationContextAccessor;

public static IEmailSender EmailSender => CoreCurrent.EmailSender;

#endregion
}
}

0 comments on commit c02a97b

Please sign in to comment.