fix: Remove PrependExtensionInterface.

It is now handled by `chill_main` bundle.
This commit is contained in:
Pol Dellaiera 2022-03-15 13:42:13 +01:00
parent 3d7fcd99a8
commit 22755de1dd
No known key found for this signature in database
GPG Key ID: D476DFE9C67467CA

View File

@ -11,14 +11,12 @@ 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 implements PrependExtensionInterface final class ChillWopiExtension extends Extension
{ {
public function load(array $configs, ContainerBuilder $container) public function load(array $configs, ContainerBuilder $container)
{ {
@ -33,18 +31,4 @@ final class ChillWopiExtension extends Extension implements PrependExtensionInte
$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,
],
],
]
);
}
} }