summaryrefslogtreecommitdiffstats
path: root/core/lib/Drupal/Core/CoreBundle.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/lib/Drupal/Core/CoreBundle.php')
-rw-r--r--core/lib/Drupal/Core/CoreBundle.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/lib/Drupal/Core/CoreBundle.php b/core/lib/Drupal/Core/CoreBundle.php
index 09fe145..35b1b6d 100644
--- a/core/lib/Drupal/Core/CoreBundle.php
+++ b/core/lib/Drupal/Core/CoreBundle.php
@@ -303,6 +303,16 @@ class CoreBundle extends Bundle {
$container->register('ajax.subscriber', 'Drupal\Core\Ajax\AjaxSubscriber')
->addTag('event_subscriber');
+ // Register image toolkit manager.
+ $container
+ ->register('image.toolkit.manager', 'Drupal\system\Plugin\ImageToolkitManager')
+ ->addArgument('%container.namespaces%');
+ // Register image toolkit.
+ $container
+ ->register('image.toolkit', 'Drupal\system\Plugin\ImageToolkitInterface')
+ ->setFactoryService('image.toolkit.manager')
+ ->setFactoryMethod('getDefaultToolkit');
+
$container->addCompilerPass(new RegisterMatchersPass());
$container->addCompilerPass(new RegisterRouteFiltersPass());
// Add a compiler pass for registering event subscribers.