From 7acd689da80400e1c95490eafd12722894f4d36e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Auswo=CC=88ger?= Date: Mon, 28 Sep 2020 11:40:11 +0200 Subject: [PATCH] Fix bundle loading order --- src/ContaoManagerPlugin.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ContaoManagerPlugin.php b/src/ContaoManagerPlugin.php index a3f86c6..52458cc 100644 --- a/src/ContaoManagerPlugin.php +++ b/src/ContaoManagerPlugin.php @@ -2,10 +2,12 @@ namespace MadeYourDay\RockSolidSlider; +use Contao\CalendarBundle\ContaoCalendarBundle; use Contao\CoreBundle\ContaoCoreBundle; use Contao\ManagerPlugin\Bundle\BundlePluginInterface; use Contao\ManagerPlugin\Bundle\Parser\ParserInterface; use Contao\ManagerPlugin\Bundle\Config\BundleConfig; +use Contao\NewsBundle\ContaoNewsBundle; class ContaoManagerPlugin implements BundlePluginInterface { @@ -17,6 +19,8 @@ public function getBundles(ParserInterface $parser) return [ BundleConfig::create(RockSolidSliderBundle::class) ->setLoadAfter([ContaoCoreBundle::class]) + ->setLoadAfter([ContaoNewsBundle::class]) + ->setLoadAfter([ContaoCalendarBundle::class]) ->setReplace(['rocksolid-slider']), ]; }