Browse code

Modernize and adjust code to Contao 5

Benjamin Roth authored on26/10/2023 15:21:49
Showing1 changed files
... ...
@@ -22,7 +22,7 @@ class Plugin implements BundlePluginInterface
22 22
     /**
23 23
      * {@inheritdoc}
24 24
      */
25
-    public function getBundles(ParserInterface $parser)
25
+    public function getBundles(ParserInterface $parser): array
26 26
     {
27 27
         $arrLoadAfter = [ContaoCoreBundle::class];
28 28
 
Browse code

Initial commit

Benjamin Roth authored on25/11/2018 15:53:19
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,39 @@
1
+<?php
2
+
3
+/*
4
+ * This file is part of eSales Media ContentHelperBundle
5
+ *
6
+ * (c) John Doe
7
+ *
8
+ * @license LGPL-3.0-or-later
9
+ */
10
+
11
+namespace EsalesMedia\ContentHelperBundle\ContaoManager;
12
+
13
+use EsalesMedia\ContentHelperBundle\EsalesMediaContentHelperBundle;
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 MadeYourDay\RockSolidColumns\RockSolidColumnsBundle;
19
+
20
+class Plugin implements BundlePluginInterface
21
+{
22
+    /**
23
+     * {@inheritdoc}
24
+     */
25
+    public function getBundles(ParserInterface $parser)
26
+    {
27
+        $arrLoadAfter = [ContaoCoreBundle::class];
28
+
29
+        if (RockSolidColumnsBundle::class)
30
+        {
31
+            $arrLoadAfter[] = RockSolidColumnsBundle::class;
32
+        }
33
+
34
+        return [
35
+            BundleConfig::create(EsalesMediaContentHelperBundle::class)
36
+                ->setLoadAfter($arrLoadAfter)
37
+        ];
38
+    }
39
+}