-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b8d6d96
commit ddb53d7
Showing
23 changed files
with
84 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
src/OrchardCore.Modules/OrchardCore.Media/Views/Admin/Index.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 18 additions & 11 deletions
29
src/OrchardCore/OrchardCore.Abstractions/Shell/Scope/ShellScopeServices.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
using System; | ||
using Microsoft.Extensions.DependencyInjection; | ||
using OrchardCore.Environment.Shell.Builders; | ||
|
||
namespace OrchardCore.Environment.Shell.Scope | ||
namespace OrchardCore.Environment.Shell.Scope; | ||
|
||
/// <summary> | ||
/// Makes an 'IServiceProvider' aware of the current 'ShellScope'. | ||
/// </summary> | ||
public class ShellScopeServices(IServiceProvider services) : IKeyedServiceProvider | ||
{ | ||
public class ShellScopeServices : IServiceProvider | ||
{ | ||
private readonly IServiceProvider _services; | ||
private readonly IServiceProvider _services = services; | ||
|
||
private IServiceProvider Services | ||
=> ShellScope.Services ?? _services; | ||
|
||
/// <summary> | ||
/// Makes an 'IServiceProvider' aware of the current 'ShellScope'. | ||
/// </summary> | ||
public ShellScopeServices(IServiceProvider services) => _services = services; | ||
public object GetKeyedService(Type serviceType, object serviceKey) | ||
=> Services.GetKeyedService(serviceType, serviceKey); | ||
|
||
private IServiceProvider Services => ShellScope.Services ?? _services; | ||
public object GetRequiredKeyedService(Type serviceType, object serviceKey) | ||
=> Services.GetRequiredKeyedService(serviceType, serviceKey); | ||
|
||
public object GetService(Type serviceType) => Services?.GetService(serviceType); | ||
} | ||
public object GetService(Type serviceType) | ||
=> Services?.GetService(serviceType); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Orchard Core 1.8.1 | ||
|
||
Release date: January 9, 2024 | ||
|
||
## What's Changed | ||
|
||
* Fix dependencies for GraphQL by @MikeAlhayek in <https://github.com/OrchardCMS/OrchardCore/pull/15015> | ||
* Set a default display name only when none is specified by @giannik and @MikeAlhayek in <https://github.com/OrchardCMS/OrchardCore/pull/15013> | ||
* Add Keyed services support in ShellScopeServices by @MikeAlhayek in <https://github.com/OrchardCMS/OrchardCore/pull/14998> | ||
* Fix Media Field dependency by @MikeAlhayek in <https://github.com/OrchardCMS/OrchardCore/pull/15017> | ||
|
||
**Full Changelog**: <https://github.com/OrchardCMS/OrchardCore/compare/v1.8.0...v1.8.1> |