mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
FIX Allow dispatcher in Embed to be configured with injector (#8192)
This commit is contained in:
parent
9f764f4ec3
commit
725212a707
@ -2,6 +2,7 @@
|
||||
|
||||
namespace SilverStripe\View\Shortcodes;
|
||||
|
||||
use Embed\Http\DispatcherInterface;
|
||||
use SilverStripe\Core\Convert;
|
||||
use SilverStripe\Core\Injector\Injector;
|
||||
use SilverStripe\View\HTML;
|
||||
@ -68,6 +69,8 @@ class EmbedShortcodeProvider implements ShortcodeHandler
|
||||
$serviceURL,
|
||||
$extra['resolver']['config']
|
||||
);
|
||||
} elseif (Injector::inst()->has(DispatcherInterface::class)) {
|
||||
$dispatcher = Injector::inst()->get(DispatcherInterface::class);
|
||||
}
|
||||
|
||||
// Process embed
|
||||
|
Loading…
x
Reference in New Issue
Block a user