Browse code

Initial commit

Benjamin Roth authored on14/03/2023 16:28:03
Showing1 changed files
... ...
@@ -3,7 +3,7 @@
3 3
 declare(strict_types=1);
4 4
 
5 5
 /*
6
- * This file is part of modal bundle for Contao.
6
+ * This file is part of newsmailer bundle for Contao.
7 7
  *
8 8
  * (c) Benjamin Roth
9 9
  *
... ...
@@ -13,10 +13,11 @@ declare(strict_types=1);
13 13
 namespace vonRotenberg\NewsmailerBundle\ContaoManager;
14 14
 
15 15
 use Contao\CoreBundle\ContaoCoreBundle;
16
+use Contao\NewsBundle\ContaoNewsBundle;
16 17
 use Contao\ManagerPlugin\Bundle\BundlePluginInterface;
17 18
 use Contao\ManagerPlugin\Bundle\Config\BundleConfig;
18 19
 use Contao\ManagerPlugin\Bundle\Parser\ParserInterface;
19
-use vonRotenberg\ModalBundle\VonrotenbergNewsmailerBundle;
20
+use vonRotenberg\NewsmailerBundle\VonrotenbergNewsmailerBundle;
20 21
 
21 22
 class Plugin implements BundlePluginInterface
22 23
 {
... ...
@@ -24,7 +25,10 @@ class Plugin implements BundlePluginInterface
24 25
     {
25 26
         return [
26 27
             BundleConfig::create(VonrotenbergNewsmailerBundle::class)
27
-                ->setLoadAfter([ContaoCoreBundle::class]),
28
+                ->setLoadAfter([
29
+                    ContaoCoreBundle::class,
30
+                    ContaoNewsBundle::class
31
+                ]),
28 32
         ];
29 33
     }
30 34
 }
Browse code

Initial commit

Benjamin Roth authored on14/03/2023 14:08:46
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,30 @@
1
+<?php
2
+
3
+declare(strict_types=1);
4
+
5
+/*
6
+ * This file is part of modal bundle for Contao.
7
+ *
8
+ * (c) Benjamin Roth
9
+ *
10
+ * @license LGPL-3.0-or-later
11
+ */
12
+
13
+namespace vonRotenberg\NewsmailerBundle\ContaoManager;
14
+
15
+use Contao\CoreBundle\ContaoCoreBundle;
16
+use Contao\ManagerPlugin\Bundle\BundlePluginInterface;
17
+use Contao\ManagerPlugin\Bundle\Config\BundleConfig;
18
+use Contao\ManagerPlugin\Bundle\Parser\ParserInterface;
19
+use vonRotenberg\ModalBundle\VonrotenbergNewsmailerBundle;
20
+
21
+class Plugin implements BundlePluginInterface
22
+{
23
+    public function getBundles(ParserInterface $parser): array
24
+    {
25
+        return [
26
+            BundleConfig::create(VonrotenbergNewsmailerBundle::class)
27
+                ->setLoadAfter([ContaoCoreBundle::class]),
28
+        ];
29
+    }
30
+}