Browse code

Try to load before Core

Benjamin Roth authored on22/05/2020 22:04:16
Showing1 changed files
... ...
@@ -22,12 +22,7 @@ final class Plugin implements BundlePluginInterface
22 22
   public function getBundles(ParserInterface $parser): array
23 23
   {
24 24
     return [
25
-      BundleConfig::create(vonRotenbergScrollanimationBundle::class)
26
-        ->setLoadAfter(
27
-          [
28
-            ContaoCoreBundle::class,
29
-          ]
30
-        ),
25
+      BundleConfig::create(vonRotenbergScrollanimationBundle::class),
31 26
     ];
32 27
   }
33 28
 }
34 29
\ No newline at end of file
Browse code

Add missing Plugin config

Benjamin Roth authored on22/05/2020 14:05:18
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,33 @@
1
+<?php
2
+
3
+declare(strict_types=1);
4
+
5
+/*
6
+ * Provides contao components scrollmagic and anime.js.
7
+ *
8
+ * @author     vonRotenberg <https://www.vonrotenberg.de>
9
+ * @license    LGPL-3.0+
10
+ */
11
+
12
+namespace vonRotenberg\ScrollanimationBundle\ContaoManager;
13
+
14
+use Contao\CoreBundle\ContaoCoreBundle;
15
+use Contao\ManagerPlugin\Bundle\BundlePluginInterface;
16
+use Contao\ManagerPlugin\Bundle\Config\BundleConfig;
17
+use Contao\ManagerPlugin\Bundle\Parser\ParserInterface;
18
+use vonRotenberg\ScrollanimationBundle\vonRotenbergScrollanimationBundle;
19
+
20
+final class Plugin implements BundlePluginInterface
21
+{
22
+  public function getBundles(ParserInterface $parser): array
23
+  {
24
+    return [
25
+      BundleConfig::create(vonRotenbergScrollanimationBundle::class)
26
+        ->setLoadAfter(
27
+          [
28
+            ContaoCoreBundle::class,
29
+          ]
30
+        ),
31
+    ];
32
+  }
33
+}
0 34
\ No newline at end of file