public AdminController( IEnumerable<IExtensionDisplayEventHandler> extensionDisplayEventHandlers, IOrchardServices services, IDataMigrationManager dataMigraitonManager, IFeatureManager featureManager, ISiteThemeService siteThemeService, IExtensionManager extensionManager, ShellDescriptor shellDescriptor, IPreviewTheme previewTheme, IThemeService themeService, IReportsCoordinator reportsCoordinator) { Services = services; _extensionDisplayEventHandler = extensionDisplayEventHandlers.FirstOrDefault(); _dataMigrationManager = dataMigraitonManager; _siteThemeService = siteThemeService; _extensionManager = extensionManager; _shellDescriptor = shellDescriptor; _featureManager = featureManager; _previewTheme = previewTheme; _themeService = themeService; _reportsCoordinator = reportsCoordinator; T = NullLocalizer.Instance; Logger = NullLogger.Instance; }
public PlacementService( IContentManager contentManager, ISiteThemeService siteThemeService, IExtensionManager extensionManager, IShapeFactory shapeFactory, IShapeTableLocator shapeTableLocator, RequestContext requestContext, IEnumerable<IContentPartDriver> contentPartDrivers, IEnumerable<IContentFieldDriver> contentFieldDrivers, IVirtualPathProvider virtualPathProvider, IWorkContextAccessor workContextAccessor ) { _contentManager = contentManager; _siteThemeService = siteThemeService; _extensionManager = extensionManager; _shapeFactory = shapeFactory; _shapeTableLocator = shapeTableLocator; _requestContext = requestContext; _contentPartDrivers = contentPartDrivers; _contentFieldDrivers = contentFieldDrivers; _virtualPathProvider = virtualPathProvider; _workContextAccessor = workContextAccessor; Logger = NullLogger.Instance; }
public ThemeService( IOrchardServices orchardServices, IExtensionManager extensionManager, IFeatureManager featureManager, IEnumerable<IThemeSelector> themeSelectors, IVirtualPathProvider virtualPathProvider, ICacheManager cacheManager, ISiteThemeService siteThemeService) { Services = orchardServices; _extensionManager = extensionManager; _featureManager = featureManager; _themeSelectors = themeSelectors; _virtualPathProvider = virtualPathProvider; _cacheManager = cacheManager; _siteThemeService = siteThemeService; if (_featureManager.FeatureDependencyNotification == null) { _featureManager.FeatureDependencyNotification = GenerateWarning; } Logger = NullLogger.Instance; T = NullLocalizer.Instance; }
public AdminController( ISiteThemeService siteThemeService, IAdminThemeService adminThemeService) { _siteThemeService = siteThemeService; _adminThemeService = adminThemeService; }
public SiteThemeSelector( ISiteThemeService siteThemeService, IHttpContextAccessor httpContextAccessor) { _siteThemeService = siteThemeService; _httpContextAccessor = httpContextAccessor; }
public BrandingFilter(IThemeSettingsService settingsService, IResourceManager resourceManager, ISiteThemeService siteThemeService) { _settingsService = settingsService; _resourceManager = resourceManager; _siteThemeService = siteThemeService; }
public ThemeLayoutAlternatesProvider( ISiteThemeService siteThemeService, IExtensionManager extensionManager ) { _siteThemeService = siteThemeService; _extensionManager = extensionManager; }
public ThemesStep( ISiteThemeService siteThemeService, IAdminThemeService adminThemeService, ILoggerFactory logger, IStringLocalizer<ThemesStep> localizer) : base(logger, localizer) { _adminThemeService = adminThemeService; _siteThemeService = siteThemeService; }
public DefaultConfigProvider( IOrchardServices orchardServices, ISiteThemeService siteThemeService, IVirtualPathProvider virtualPathProvider ) { _siteThemeService = siteThemeService; _virtualPathProvider = virtualPathProvider; Services = orchardServices; }
public ThemeDisableEventHandler( IFeatureManager featureManager, ISiteThemeService siteThemeService, INotifier notifier) { _featureManager = featureManager; _siteThemeService = siteThemeService; _notifier = notifier; T = NullLocalizer.Instance; }
public SiteResetTask(IScheduledTaskManager scheduledTaskManager, IClock clock, IRepository<ScheduledTaskRecord> repository, IThemeService themeService, ISiteThemeService siteThemeService){ _scheduledTaskManager = scheduledTaskManager; _clock = clock; _repository = repository; _themeService = themeService; _siteThemeService = siteThemeService; }
public ThemeCommands(IDataMigrationManager dataMigrationManager, ISiteThemeService siteThemeService, IExtensionManager extensionManager, ShellDescriptor shellDescriptor, IThemeService themeService) { _dataMigrationManager = dataMigrationManager; _siteThemeService = siteThemeService; _extensionManager = extensionManager; _shellDescriptor = shellDescriptor; _themeService = themeService; }
public Shapes( IOrchardServices orchardServices, ISiteThemeService siteThemeService, IVirtualPathProvider virtualPathProvider, Lazy<IEnumerable<ICKEditorConfigProvider>> configProviders ) { _siteThemeService = siteThemeService; _virtualPathProvider = virtualPathProvider; _ckEditorConfigProviders = configProviders; Services = orchardServices; }
public ThemeStep( IPackagingSourceManager packagingSourceManager, IPackageManager packageManager, IExtensionManager extensionManager, IThemeService themeService, ISiteThemeService siteThemeService, RecipeExecutionLogger logger) : base(logger) { _packagingSourceManager = packagingSourceManager; _packageManager = packageManager; _extensionManager = extensionManager; _themeService = themeService; _siteThemeService = siteThemeService; }
public ThemeService( IExtensionManager extensionManager, IShellFeaturesManager shellFeaturesManager, ISiteThemeService siteThemeService, IHtmlLocalizer <ThemeService> htmlLocalizer, INotifier notifier) { _extensionManager = extensionManager; _shellFeaturesManager = shellFeaturesManager; _siteThemeService = siteThemeService; _notifier = notifier; H = htmlLocalizer; }
public AdminController( IEnumerable<Orchard.Modules.Events.IExtensionDisplayEventHandler> extensionDisplayEventHandlers, IOrchardServices services, IModuleService moduleService, IDataMigrationManager dataMigrationManager, IReportsCoordinator reportsCoordinator, IExtensionManager extensionManager, IFeatureManager featureManager, IRecipeHarvester recipeHarvester, IRecipeManager recipeManager, ShellDescriptor shellDescriptor, ShellSettings shellSettings, IShapeFactory shapeFactory, IPackageService packageService, IMimeTypeProvider mimeTypeProvider, ISiteThemeService siteThemeService, IThemeService themeService) { Services = services; _extensionDisplayEventHandler = extensionDisplayEventHandlers.FirstOrDefault(); _moduleService = moduleService; _dataMigrationManager = dataMigrationManager; _reportsCoordinator = reportsCoordinator; _extensionManager = extensionManager; _featureManager = featureManager; _recipeHarvester = recipeHarvester; _recipeManager = recipeManager; _shellDescriptor = shellDescriptor; _shellSettings = shellSettings; Shape = shapeFactory; _packageService = packageService; _mimeTypeProvider = mimeTypeProvider; _siteThemeService = siteThemeService; _themeService = themeService; T = NullLocalizer.Instance; Logger = NullLogger.Instance; _tempPackageStoragePath = new Lazy<string>(() => { var path = HostingEnvironment.MapPath("~/App_Data/Packages"); if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } return path; }); }
public AdminController( IEnumerable <Orchard.Modules.Events.IExtensionDisplayEventHandler> extensionDisplayEventHandlers, IOrchardServices services, IModuleService moduleService, IDataMigrationManager dataMigrationManager, IReportsCoordinator reportsCoordinator, IExtensionManager extensionManager, IFeatureManager featureManager, IRecipeHarvester recipeHarvester, IRecipeManager recipeManager, ShellDescriptor shellDescriptor, ShellSettings shellSettings, IShapeFactory shapeFactory, IPackageService packageService, IMimeTypeProvider mimeTypeProvider, ISiteThemeService siteThemeService, IThemeService themeService) { Services = services; _extensionDisplayEventHandler = extensionDisplayEventHandlers.FirstOrDefault(); _moduleService = moduleService; _dataMigrationManager = dataMigrationManager; _reportsCoordinator = reportsCoordinator; _extensionManager = extensionManager; _featureManager = featureManager; _recipeHarvester = recipeHarvester; _recipeManager = recipeManager; _shellDescriptor = shellDescriptor; _shellSettings = shellSettings; Shape = shapeFactory; _packageService = packageService; _mimeTypeProvider = mimeTypeProvider; _siteThemeService = siteThemeService; _themeService = themeService; T = NullLocalizer.Instance; Logger = NullLogger.Instance; _tempPackageStoragePath = new Lazy <string>(() => { var path = HostingEnvironment.MapPath("~/App_Data/Packages"); if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } return(path); }); }
public AdminController( IOrchardServices services, IWidgetsService widgetsService, IShapeFactory shapeFactory, ISiteThemeService siteThemeService, IVirtualPathProvider virtualPathProvider) { Services = services; _widgetsService = widgetsService; _siteThemeService = siteThemeService; _virtualPathProvider = virtualPathProvider; T = NullLocalizer.Instance; Logger = NullLogger.Instance; Shape = shapeFactory; }
public ThemeRecipeHandler( IPackagingSourceManager packagingSourceManager, IPackageManager packageManager, IExtensionManager extensionManager, IThemeService themeService, ISiteThemeService siteThemeService) { _packagingSourceManager = packagingSourceManager; _packageManager = packageManager; _extensionManager = extensionManager; _themeService = themeService; _siteThemeService = siteThemeService; Logger = NullLogger.Instance; T = NullLocalizer.Instance; }
public PlacementServiceWrapper(IPlacementService placementService, ISiteThemeService siteThemeService, IShapeTableLocator shapeTableLocator, RequestContext requestContext, IVirtualPathProvider virtualPathProvider, IShapeFactory shapeFactory, IContentManager contentManager, IEnumerable <IContentPartDriver> contentPartDrivers, IEnumerable <IContentFieldDriver> contentFieldDrivers) { PlacementService = placementService; SiteThemeService = siteThemeService; ShapeTableLocator = shapeTableLocator; RequestContext = requestContext; VirtualPathProvider = virtualPathProvider; ShapeFactory = shapeFactory; ContentManager = contentManager; ContentPartDrivers = contentPartDrivers; ContentFieldDrivers = contentFieldDrivers; Logger = NullLogger.Instance; }
public AdminController( ISiteThemeService siteThemeService, IAdminThemeService adminThemeService, IHtmlLocalizer <AdminController> localizer, IShellFeaturesManager shellFeaturesManager, IAuthorizationService authorizationService, INotifier notifier) { _siteThemeService = siteThemeService; _adminThemeService = adminThemeService; _shellFeaturesManager = shellFeaturesManager; _authorizationService = authorizationService; _notifier = notifier; H = localizer; }
public WidgetsContainerPartDriver( ISiteThemeService siteThemeService, IWidgetsService widgetsService, IVirtualPathProvider virtualPathProvider, IShapeFactory shapeFactory, IWidgetManager widgetManager, IWorkContextAccessor wca, IContentManager contentManager) { _siteThemeService = siteThemeService; _widgetsService = widgetsService; _virtualPathProvider = virtualPathProvider; New = shapeFactory; _widgetManager = widgetManager; _wca = wca; _contentManager = contentManager; }
public SiteResetTaskExecutor( IThemeService themeService, ISiteThemeService siteThemeService, ISessionFactoryHolder sessionFactoryHolder, IVirtualPathProvider virtualPathProvider, ShellSettings shellSettings, ISessionLocator sessionLocator, IEnumerable<ICommandInterpreter> commandInterpreters, IReportsCoordinator reportsCoordinator) { _themeService = themeService; _siteThemeService = siteThemeService; _virtualPathProvider = virtualPathProvider; _sessionFactoryHolder = sessionFactoryHolder; var interpreter = new Coevery.Core.Services.DefaultDataMigrationInterpreter(shellSettings, sessionLocator, commandInterpreters, sessionFactoryHolder, reportsCoordinator); _schemaBuilder = new SchemaBuilder(interpreter, "", s => s.Replace(".", "_")); Logger=NullLogger.Instance; }
public AdminController( ITomeltServices services, IWidgetsService widgetsService, IShapeFactory shapeFactory, ISiteThemeService siteThemeService, IVirtualPathProvider virtualPathProvider, ICultureManager cultureManager) { Services = services; _widgetsService = widgetsService; _siteThemeService = siteThemeService; _virtualPathProvider = virtualPathProvider; _cultureManager = cultureManager; T = NullLocalizer.Instance; Logger = NullLogger.Instance; Shape = shapeFactory; }
public SiteResetTaskExecutor( IThemeService themeService, ISiteThemeService siteThemeService, ISessionFactoryHolder sessionFactoryHolder, IVirtualPathProvider virtualPathProvider, ShellSettings shellSettings, ISessionLocator sessionLocator, IEnumerable <ICommandInterpreter> commandInterpreters, IReportsCoordinator reportsCoordinator) { _themeService = themeService; _siteThemeService = siteThemeService; _virtualPathProvider = virtualPathProvider; _sessionFactoryHolder = sessionFactoryHolder; var interpreter = new Coevery.Core.Services.DefaultDataMigrationInterpreter(shellSettings, sessionLocator, commandInterpreters, sessionFactoryHolder, reportsCoordinator); _schemaBuilder = new SchemaBuilder(interpreter, "", s => s.Replace(".", "_")); Logger = NullLogger.Instance; }
public AdminController( ISiteThemeService siteThemeService, IAdminThemeService adminThemeService, IThemeService themeService, ShellSettings shellSettings, IExtensionManager extensionManager, IHtmlLocalizer <AdminController> localizer, IShellDescriptorManager shellDescriptorManager, IShellFeaturesManager shellFeaturesManager, IAuthorizationService authorizationService, INotifier notifier) { _siteThemeService = siteThemeService; _adminThemeService = adminThemeService; _extensionManager = extensionManager; _shellFeaturesManager = shellFeaturesManager; _authorizationService = authorizationService; _notifier = notifier; H = localizer; }
public void Init() { var context = new DynamicProxyContext(); var builder = new ContainerBuilder(); builder.RegisterType <StubWorkContextAccessor>().As <IWorkContextAccessor>(); builder.RegisterType <ThemeService>().EnableDynamicProxy(context).As <IThemeService>(); builder.RegisterType <SiteService>().As <ISiteService>(); builder.RegisterGeneric(typeof(Repository <>)).As(typeof(IRepository <>)); builder.RegisterType <Orchard.Localization.Text>().As <IText>(); builder.RegisterType <DefaultContentManager>().As <IContentManager>(); builder.RegisterType <StubCacheManager>().As <ICacheManager>(); builder.RegisterType <ContentDefinitionManager>().As <IContentDefinitionManager>(); builder.RegisterType <DefaultContentManagerSession>().As <IContentManagerSession>(); builder.RegisterType <DefaultShapeFactory>().As <IShapeFactory>(); builder.RegisterType <DefaultShapeTableManager>().As <IShapeTableManager>(); builder.RegisterType <StubExtensionManager>().As <IExtensionManager>(); builder.RegisterType <DefaultContentQuery>().As <IContentQuery>(); builder.RegisterType <SiteSettingsPartHandler>().As <IContentHandler>(); builder.RegisterType <ThemeSiteSettingsPartHandler>().As <IContentHandler>(); //builder.RegisterType<ModuleService>().As<IModuleService>(); builder.RegisterType <ShellDescriptor>(); builder.RegisterType <OrchardServices>().As <IOrchardServices>(); builder.RegisterType <StubShellDescriptorManager>().As <IShellDescriptorManager>().InstancePerLifetimeScope(); builder.RegisterType <TransactionManager>().As <ITransactionManager>(); builder.RegisterType <Notifier>().As <INotifier>(); builder.RegisterType <StubAuthorizer>().As <IAuthorizer>(); builder.RegisterType <DefaultContentDisplay>().As <IContentDisplay>(); builder.RegisterType(typeof(SettingsFormatter)) .As(typeof(IMapper <XElement, SettingsDictionary>)) .As(typeof(IMapper <SettingsDictionary, XElement>)); _session = _sessionFactory.OpenSession(); builder.RegisterInstance(new TestSessionLocator(_session)).As <ISessionLocator>(); builder.RegisterAutoMocking(MockBehavior.Loose); _container = builder.Build(); _themeService = _container.Resolve <IThemeService>(); _siteThemeService = _container.Resolve <ISiteThemeService>(); _featureManager = _container.Resolve <IFeatureManager>(); }
public CurrentThemeExportStep(ISiteThemeService siteThemeService) { _siteThemeService = siteThemeService; Logger = NullLogger.Instance; T = NullLocalizer.Instance; }
public CurrentThemeStep( ISiteThemeService siteThemeService, RecipeExecutionLogger logger) : base(logger) { _siteThemeService = siteThemeService; }
public CurrentThemeRecipeStepHandler(ISiteThemeService siteThemeService, IRealtimeFeedbackService realtimeFeedbackService) { _siteThemeService = siteThemeService; _realtimeFeedbackService = realtimeFeedbackService; T = NullLocalizer.Instance; }
public ThemesDeploymentSource(ISiteThemeService siteThemeService, IAdminThemeService adminThemeService) { _siteThemeService = siteThemeService; _adminThemeService = adminThemeService; }
public WidgetsContainerEvents(ISiteThemeService siteThemeService, IWidgetsService widgetsService) { _siteThemeService = siteThemeService; _widgetsService = widgetsService; }
public CurrentThemeStep(ISiteThemeService siteThemeService) { _siteThemeService = siteThemeService; }
public CurrentThemeShapeBindingResolver(ISiteThemeService siteThemeService, IShapeTableLocator shapeTableLocator) { _siteThemeService = siteThemeService; _shapeTableLocator = shapeTableLocator; }
public AdminMenu(ISiteThemeService siteThemeService) { _siteThemeService = siteThemeService; }
public SiteThemeSelector(ISiteThemeService siteThemeService) { _siteThemeService = siteThemeService; }
public void Init() { var context = new DynamicProxyContext(); var builder = new ContainerBuilder(); builder.RegisterType<StubWorkContextAccessor>().As<IWorkContextAccessor>(); builder.RegisterType<ThemeService>().EnableDynamicProxy(context).As<IThemeService>(); builder.RegisterType<SiteService>().As<ISiteService>(); builder.RegisterGeneric(typeof(Repository<>)).As(typeof(IRepository<>)); builder.RegisterType<Orchard.Localization.Text>().As<IText>(); builder.RegisterType<DefaultContentManager>().As<IContentManager>(); builder.RegisterType<StubCacheManager>().As<ICacheManager>(); builder.RegisterType<ContentDefinitionManager>().As<IContentDefinitionManager>(); builder.RegisterType<DefaultContentManagerSession>().As<IContentManagerSession>(); builder.RegisterType<DefaultShapeFactory>().As<IShapeFactory>(); builder.RegisterType<DefaultShapeTableManager>().As<IShapeTableManager>(); builder.RegisterType<StubExtensionManager>().As<IExtensionManager>(); builder.RegisterType<DefaultContentQuery>().As<IContentQuery>(); builder.RegisterType<SiteSettingsPartHandler>().As<IContentHandler>(); builder.RegisterType<ThemeSiteSettingsPartHandler>().As<IContentHandler>(); //builder.RegisterType<ModuleService>().As<IModuleService>(); builder.RegisterType<ShellDescriptor>(); builder.RegisterType<OrchardServices>().As<IOrchardServices>(); builder.RegisterType<StubShellDescriptorManager>().As<IShellDescriptorManager>().InstancePerLifetimeScope(); builder.RegisterType<TransactionManager>().As<ITransactionManager>(); builder.RegisterType<Notifier>().As<INotifier>(); builder.RegisterType<StubAuthorizer>().As<IAuthorizer>(); builder.RegisterType<DefaultContentDisplay>().As<IContentDisplay>(); builder.RegisterType(typeof(SettingsFormatter)) .As(typeof(IMapper<XElement, SettingsDictionary>)) .As(typeof(IMapper<SettingsDictionary, XElement>)); _session = _sessionFactory.OpenSession(); builder.RegisterInstance(new TestSessionLocator(_session)).As<ISessionLocator>(); builder.RegisterAutoMocking(MockBehavior.Loose); _container = builder.Build(); _themeService = _container.Resolve<IThemeService>(); _siteThemeService = _container.Resolve<ISiteThemeService>(); _featureManager = _container.Resolve<IFeatureManager>(); }
public SwitcherooThemeSelector(ISiteThemeService siteThemeService, IHttpContextAccessor httpContextAccessor) { _siteThemeService = siteThemeService; _httpContextAccessor = httpContextAccessor; }
public ThemeSettingsMenu( ISiteThemeService siteThemeService) { _siteThemeService = siteThemeService; }
public LayoutFilter(IThemeSettingsService settingsService, IResourceManager resourceManager, ISiteThemeService siteThemeService) { _settingsService = settingsService; _resourceManager = resourceManager; _siteThemeService = siteThemeService; }
public DefaultLayoutAlternatesProvider(ISiteThemeService siteThemeService) { _siteThemeService = siteThemeService; }