Skip to content

Commit c6e4280

Browse files
committed
Load this bundle after the attribute file bundle
1 parent c49918f commit c6e4280

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/ContaoManager/Plugin.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
use Contao\ManagerPlugin\Bundle\BundlePluginInterface;
2525
use Contao\ManagerPlugin\Bundle\Config\BundleConfig;
2626
use Contao\ManagerPlugin\Bundle\Parser\ParserInterface;
27+
use MetaModels\AttributeFileBundle\MetaModelsAttributeFileBundle;
2728
use MetaModels\AttributeTranslatedFileBundle\MetaModelsAttributeTranslatedFileBundle;
2829
use MetaModels\CoreBundle\MetaModelsCoreBundle;
2930

@@ -42,7 +43,8 @@ public function getBundles(ParserInterface $parser)
4243
->setLoadAfter(
4344
[
4445
ContaoCoreBundle::class,
45-
MetaModelsCoreBundle::class
46+
MetaModelsCoreBundle::class,
47+
MetaModelsAttributeFileBundle::class
4648
]
4749
)
4850
->setReplace(['metamodelsattribute_translatedfile'])

tests/ContaoManager/PluginTest.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
use Contao\ManagerPlugin\Bundle\BundlePluginInterface;
2525
use Contao\ManagerPlugin\Bundle\Config\BundleConfig;
2626
use Contao\ManagerPlugin\Bundle\Parser\ParserInterface;
27+
use MetaModels\AttributeFileBundle\MetaModelsAttributeFileBundle;
2728
use MetaModels\AttributeTranslatedFileBundle\ContaoManager\Plugin;
2829
use MetaModels\CoreBundle\MetaModelsCoreBundle;
2930
use PHPUnit\Framework\TestCase;
@@ -63,7 +64,14 @@ public function testBundleConfig()
6364
/** @var BundleConfig $bundleConfig */
6465
$bundleConfig = $bundles[0];
6566

66-
$this->assertEquals($bundleConfig->getLoadAfter(), [ContaoCoreBundle::class, MetaModelsCoreBundle::class]);
67+
$this->assertEquals(
68+
$bundleConfig->getLoadAfter(),
69+
[
70+
ContaoCoreBundle::class,
71+
MetaModelsCoreBundle::class,
72+
MetaModelsAttributeFileBundle::class
73+
]
74+
);
6775
$this->assertEquals($bundleConfig->getReplace(), ['metamodelsattribute_translatedfile']);
6876
}
6977
}

0 commit comments

Comments
 (0)