From d69279371423157aa75f88dbf7dde8a50582ef63 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Tue, 21 Dec 2021 14:31:31 +0100 Subject: [PATCH] fix: Add missing UUID doctrine type. --- .../DependencyInjection/ChillWopiExtension.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/Bundle/ChillWopiBundle/src/DependencyInjection/ChillWopiExtension.php b/src/Bundle/ChillWopiBundle/src/DependencyInjection/ChillWopiExtension.php index 37a9e2fa6..da6fc0d0d 100644 --- a/src/Bundle/ChillWopiBundle/src/DependencyInjection/ChillWopiExtension.php +++ b/src/Bundle/ChillWopiBundle/src/DependencyInjection/ChillWopiExtension.php @@ -11,12 +11,14 @@ declare(strict_types=1); namespace Chill\WopiBundle\DependencyInjection; +use Ramsey\Uuid\Doctrine\UuidType; use Symfony\Component\Config\FileLocator; use Symfony\Component\DependencyInjection\ContainerBuilder; +use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface; use Symfony\Component\DependencyInjection\Loader\PhpFileLoader; use Symfony\Component\HttpKernel\DependencyInjection\Extension; -final class ChillWopiExtension extends Extension +final class ChillWopiExtension extends Extension implements PrependExtensionInterface { public function load(array $configs, ContainerBuilder $container) { @@ -31,4 +33,17 @@ final class ChillWopiExtension extends Extension $loader = new PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); $loader->load('services.php'); } + + public function prepend(ContainerBuilder $container) { + $container->prependExtensionConfig( + 'doctrine', + [ + 'dbal' => [ + 'types' => [ + 'uuid' => UuidType::class, + ], + ], + ] + ); + } }