Skip to content

Commit

Permalink
Fix bundle loading order
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Sep 28, 2020
1 parent 79cd56b commit 7acd689
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ContaoManagerPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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']),
];
}
Expand Down

0 comments on commit 7acd689

Please sign in to comment.