Browse code

Fix bundle implementation

Benjamin Roth authored on29/03/2018 23:53:48
Showing1 changed files
... ...
@@ -8,6 +8,17 @@ use Contao\ManagerPlugin\Bundle\Parser\ParserInterface;
8 8
 use Contao\ManagerPlugin\Dependency\DependentPluginInterface;
9 9
 use eSalesMedia\eSalesLayoutKit\eSalesLayoutKitBundle;
10 10
 
11
-class Plugin
11
+class Plugin implements BundlePluginInterface
12 12
 {
13
+  public function getBundles(ParserInterface $parser)
14
+  {
15
+    return [
16
+      BundleConfig::create(eSalesLayoutKitBundle::class)
17
+        ->setLoadAfter(
18
+          [
19
+            \Contao\CoreBundle\ContaoCoreBundle::class
20
+          ]
21
+        )
22
+    ];
23
+  }
13 24
 }
14 25
\ No newline at end of file
Browse code

Namespace adjustments and corrections

Benjamin Roth authored on29/03/2018 23:40:41
Showing1 changed files
... ...
@@ -1,6 +1,12 @@
1 1
 <?php
2 2
 
3
-namespace eSalesMedia\eSalesLayoutKitBundle\ContaoManager;
3
+namespace eSalesMedia\eSalesLayoutKit\ContaoManager;
4
+
5
+use Contao\ManagerPlugin\Bundle\BundlePluginInterface;
6
+use Contao\ManagerPlugin\Bundle\Config\BundleConfig;
7
+use Contao\ManagerPlugin\Bundle\Parser\ParserInterface;
8
+use Contao\ManagerPlugin\Dependency\DependentPluginInterface;
9
+use eSalesMedia\eSalesLayoutKit\eSalesLayoutKitBundle;
4 10
 
5 11
 class Plugin
6 12
 {
Browse code

Implement Contao manager plugin

Benjamin Roth authored on29/03/2018 23:34:03
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,7 @@
1
+<?php
2
+
3
+namespace eSalesMedia\eSalesLayoutKitBundle\ContaoManager;
4
+
5
+class Plugin
6
+{
7
+}
0 8
\ No newline at end of file