Browse code

Change directory structure of bundle and add first draft of fragment controller module

Benjamin Roth authored on10/01/2023 14:11:33
Showing1 changed files
... ...
@@ -21,7 +21,7 @@ class VonrotenbergModalExtension extends Extension
21 21
 {
22 22
     public function load(array $configs, ContainerBuilder $container): void
23 23
     {
24
-        $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
24
+        $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../../config'));
25 25
         $loader->load('services.yml');
26 26
     }
27 27
 }
Browse code

Initial commit

Benjamin Roth authored on09/01/2023 22:28:04
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,27 @@
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\ModalBundle\DependencyInjection;
14
+
15
+use Symfony\Component\Config\FileLocator;
16
+use Symfony\Component\DependencyInjection\ContainerBuilder;
17
+use Symfony\Component\DependencyInjection\Extension\Extension;
18
+use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
19
+
20
+class VonrotenbergModalExtension extends Extension
21
+{
22
+    public function load(array $configs, ContainerBuilder $container): void
23
+    {
24
+        $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
25
+        $loader->load('services.yml');
26
+    }
27
+}