mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
fix: Add missing UUID doctrine type.
This commit is contained in:
parent
01ef9617d6
commit
d692793714
@ -11,12 +11,14 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace Chill\WopiBundle\DependencyInjection;
|
namespace Chill\WopiBundle\DependencyInjection;
|
||||||
|
|
||||||
|
use Ramsey\Uuid\Doctrine\UuidType;
|
||||||
use Symfony\Component\Config\FileLocator;
|
use Symfony\Component\Config\FileLocator;
|
||||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||||
|
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
|
||||||
use Symfony\Component\DependencyInjection\Loader\PhpFileLoader;
|
use Symfony\Component\DependencyInjection\Loader\PhpFileLoader;
|
||||||
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
|
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)
|
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 = new PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
|
||||||
$loader->load('services.php');
|
$loader->load('services.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function prepend(ContainerBuilder $container) {
|
||||||
|
$container->prependExtensionConfig(
|
||||||
|
'doctrine',
|
||||||
|
[
|
||||||
|
'dbal' => [
|
||||||
|
'types' => [
|
||||||
|
'uuid' => UuidType::class,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
]
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user