strong ressources and interface

This commit is contained in:
Paul Schneider 2019-06-17 20:52:51 +01:00
commit ddedb227b1
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;