core-bundle/src/ContaoManager/Plugin.php
public function getBundles(ParserInterface $parser): array
    {
        return [
            BundleConfig::create(KnpMenuBundle::class),
            BundleConfig::create(KnpTimeBundle::class),
            BundleConfig::create(SchebTwoFactorBundle::class),
            BundleConfig::create(CmfRoutingBundle::class),
            BundleConfig::create(ContaoCoreBundle::class)
                ->setReplace(['core'])
                ->setLoadAfter(
                    [
                        FrameworkBundle::class,
                        SecurityBundle::class,
                        TwigBundle::class,
                        MonologBundle::class,
                        SwiftmailerBundle::class,
                        DoctrineBundle::class,
                        DoctrineCacheBundle::class,
                        KnpMenuBundle::class,
                        KnpTimeBundle::class,
                        LexikMaintenanceBundle::class,
                        NelmioCorsBundle::class,
                        NelmioSecurityBundle::class,
                        SchebTwoFactorBundle::class,
                        CmfRoutingBundle::class,
                        ContaoManagerBundle::class,
                    ]
                ),
        ];
    }
public function getBundles(ParserInterface $parser): array
    {
        return [
            BundleConfig::create(KnpMenuBundle::class),
            BundleConfig::create(KnpTimeBundle::class),
            BundleConfig::create(SchebTwoFactorBundle::class),
            BundleConfig::create(CmfRoutingBundle::class),
            BundleConfig::create(ContaoCoreBundle::class)
                ->setReplace(['core'])
                ->setLoadAfter(
                    [
                        FrameworkBundle::class,
                        SecurityBundle::class,
                        TwigBundle::class,
                        MonologBundle::class,
                        SwiftmailerBundle::class,
                        DoctrineBundle::class,
                        DoctrineCacheBundle::class,
                        KnpMenuBundle::class,
                        KnpTimeBundle::class,
                        LexikMaintenanceBundle::class,
                        NelmioCorsBundle::class,
                        NelmioSecurityBundle::class,
                        SchebTwoFactorBundle::class,
                        CmfRoutingBundle::class,
                        ContaoManagerBundle::class,
                    ]
                ),
        ];
    }
{@inheritdoc}