Browse code

Add missing Plugin config

Benjamin Roth authored on22/05/2020 14:05:18
Showing3 changed files
... ...
@@ -22,5 +22,8 @@
22 22
     "psr-4": {
23 23
       "vonRotenberg\\ScrollanimationBundle\\": "src/"
24 24
     }
25
+  },
26
+  "extra": {
27
+    "contao-manager-plugin": "vonRotenberg\\ScrollanimationBundle\\ContaoManager\\Plugin"
25 28
   }
26 29
 }
27 30
\ No newline at end of file
28 31
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
... ...
@@ -3,12 +3,10 @@
3 3
 declare(strict_types=1);
4 4
 
5 5
 /*
6
- * Root Protection Bundle for Contao Open Source CMS.
6
+ * Provides contao components scrollmagic and anime.js.
7 7
  *
8
- * @copyright  Copyright (c) 2020, terminal42 gmbh
9
- * @author     terminal42 <https://terminal42.ch>
10
- * @license    MIT
11
- * @link       http://github.com/terminal42/contao-root-protection
8
+ * @author     vonRotenberg <https://www.vonrotenberg.de>
9
+ * @license    LGPL-3.0+
12 10
  */
13 11
 
14 12
 namespace vonRotenberg\ScrollanimationBundle;