strong ressources and interface

This commit is contained in:
2019-06-17 20:52:51 +01:00
parent 0e6efa4272
commit 883a6e2bd9
44 changed files with 2456 additions and 414 deletions

View File

@ -45,7 +45,7 @@ namespace Yavsc.Controllers
IEmailSender emailSender,
IOptions<SiteSettings> siteSettings,
ILoggerFactory loggerFactory, IOptions<TwilioSettings> twilioSettings,
IStringLocalizer<Yavsc.Resources.YavscLocalisation> localizer,
IStringLocalizer<Yavsc.YavscLocalisation> localizer,
ApplicationDbContext dbContext)
{
_userManager = userManager;

View File

@ -55,7 +55,7 @@ namespace Yavsc.Controllers
IOptions<GoogleAuthSettings> googleSettings,
IOptions<PayPalSettings> paypalSettings,
IOptions<CompanyInfoSettings> cinfoSettings,
IStringLocalizer<Yavsc.Resources.YavscLocalisation> SR,
IStringLocalizer<Yavsc.YavscLocalisation> SR,
ICalendarManager calendarManager,
ILoggerFactory loggerFactory)
{

View File

@ -17,11 +17,11 @@ namespace Yavsc.Controllers
public class ActivityController : Controller
{
private ApplicationDbContext _context;
IStringLocalizer<Yavsc.Resources.YavscLocalisation> SR;
IStringLocalizer<Yavsc.YavscLocalisation> SR;
ILogger logger;
public ActivityController(ApplicationDbContext context,
IStringLocalizer<Yavsc.Resources.YavscLocalisation> SR,
IStringLocalizer<Yavsc.YavscLocalisation> SR,
ILoggerFactory loggerFactory)
{
_context = context;

View File

@ -36,7 +36,7 @@ namespace Yavsc.Controllers
IYavscMessageSender messageSender,
UserManager<ApplicationUser> userManager,
ICalendarManager calendarManager,
IStringLocalizer<Yavsc.Resources.YavscLocalisation> localizer,
IStringLocalizer<Yavsc.YavscLocalisation> localizer,
IEmailSender emailSender,
IOptions<SmtpSettings> smtpSettings,
IOptions<SiteSettings> siteSettings,

View File

@ -30,7 +30,7 @@ namespace Yavsc.Controllers
UserManager<ApplicationUser> userManager,
IBillingService billing,
ILoggerFactory loggerFactory,
IStringLocalizer<Yavsc.Resources.YavscLocalisation> SR)
IStringLocalizer<Yavsc.YavscLocalisation> SR)
{
_context = context;
_userManager = userManager;

View File

@ -34,7 +34,7 @@ namespace Yavsc.Controllers
IOptions<GoogleAuthSettings> googleSettings,
IYavscMessageSender GCMSender,
UserManager<ApplicationUser> userManager,
IStringLocalizer<Yavsc.Resources.YavscLocalisation> localizer,
IStringLocalizer<Yavsc.YavscLocalisation> localizer,
IEmailSender emailSender,
IOptions<SmtpSettings> smtpSettings,
IOptions<SiteSettings> siteSettings,

View File

@ -19,11 +19,11 @@ namespace Yavsc.Controllers
{
private ApplicationDbContext _context;
ILogger _logger;
IStringLocalizer<Yavsc.Resources.YavscLocalisation> _localizer;
IStringLocalizer<Yavsc.YavscLocalisation> _localizer;
public ProjectController(ApplicationDbContext context,
ILoggerFactory loggerFactory,
IStringLocalizer<Yavsc.Resources.YavscLocalisation> localizer
IStringLocalizer<Yavsc.YavscLocalisation> localizer
)
{
_context = context;