From 7dbe06d6a2c1e3f5b20ef5cef39d42714200c9b9 Mon Sep 17 00:00:00 2001 From: Danny van Wijk Date: Tue, 12 Oct 2021 13:28:40 +0000 Subject: [PATCH] Move asset configuration --- .../DependencyInjection/KunstmaanAdminExtension.php | 9 +++++++++ .../DependencyInjection/KunstmaanMediaExtension.php | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Kunstmaan/AdminBundle/DependencyInjection/KunstmaanAdminExtension.php b/src/Kunstmaan/AdminBundle/DependencyInjection/KunstmaanAdminExtension.php index e9e25061c6..95260bbaa8 100644 --- a/src/Kunstmaan/AdminBundle/DependencyInjection/KunstmaanAdminExtension.php +++ b/src/Kunstmaan/AdminBundle/DependencyInjection/KunstmaanAdminExtension.php @@ -132,6 +132,15 @@ public function prepend(ContainerBuilder $container) // NEXT_MAJOR: Remove templating dependency + $frameworkExtensionConfig = [ + 'assets' => [ + 'packages' => [ + 'media' => null, + ], + ], + ]; + $container->prependExtensionConfig('framework', $frameworkExtensionConfig); + $configs = $container->getExtensionConfig($this->getAlias()); $this->processConfiguration(new Configuration(), $configs); } diff --git a/src/Kunstmaan/MediaBundle/DependencyInjection/KunstmaanMediaExtension.php b/src/Kunstmaan/MediaBundle/DependencyInjection/KunstmaanMediaExtension.php index 5a8b1778a2..71e813b7ed 100644 --- a/src/Kunstmaan/MediaBundle/DependencyInjection/KunstmaanMediaExtension.php +++ b/src/Kunstmaan/MediaBundle/DependencyInjection/KunstmaanMediaExtension.php @@ -114,15 +114,6 @@ public function prepend(ContainerBuilder $container) $container->prependExtensionConfig('doctrine', $doctrineGedmoEntityConfig); - $frameworkExtensionConfig = [ - 'assets' => [ - 'packages' => [ - 'media' => null, - ], - ], - ]; - $container->prependExtensionConfig('framework', $frameworkExtensionConfig); - $configs = $container->getExtensionConfig($this->getAlias()); $this->processConfiguration(new Configuration(), $configs); }