From 6378ecbe8a0e3dd88c862718fd9b4969efec1ae1 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Tue, 17 Aug 2021 15:37:14 +0200 Subject: [PATCH] refactor: Add WopiInterface wiring. --- .../ChillWopiBundle/src/Resources/config/services.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Bundle/ChillWopiBundle/src/Resources/config/services.php b/src/Bundle/ChillWopiBundle/src/Resources/config/services.php index 11dd44233..8d5e4c5c9 100644 --- a/src/Bundle/ChillWopiBundle/src/Resources/config/services.php +++ b/src/Bundle/ChillWopiBundle/src/Resources/config/services.php @@ -9,6 +9,9 @@ declare(strict_types=1); namespace Symfony\Component\DependencyInjection\Loader\Configurator; +use ChampsLibres\WopiLib\WopiInterface; +use Chill\WopiBundle\Service\Wopi\ChillWopi; + return static function (ContainerConfigurator $container) { $services = $container ->services(); @@ -24,4 +27,7 @@ return static function (ContainerConfigurator $container) { $services ->load('Chill\\WopiBundle\\Controller\\', __DIR__ . '/../../Controller') ->tag('controller.service_arguments'); + + $services + ->alias(WopiInterface::class, ChillWopi::class); };