... | ... |
@@ -10,7 +10,7 @@ declare(strict_types=1); |
10 | 10 |
* @license commercial |
11 | 11 |
*/ |
12 | 12 |
|
13 |
-namespace VonRotenberg\MemberfilesBundle\DependencyInjection; |
|
13 |
+namespace vonRotenberg\MemberfilesBundle\DependencyInjection; |
|
14 | 14 |
|
15 | 15 |
use Symfony\Component\Config\FileLocator; |
16 | 16 |
use Symfony\Component\DependencyInjection\ContainerBuilder; |
... | ... |
@@ -3,11 +3,11 @@ |
3 | 3 |
declare(strict_types=1); |
4 | 4 |
|
5 | 5 |
/* |
6 |
- * This file is part of [package name]. |
|
6 |
+ * This file is part of memberfiles bundle. |
|
7 | 7 |
* |
8 |
- * (c) John Doe |
|
8 |
+ * (c) vonRotenberg |
|
9 | 9 |
* |
10 |
- * @license LGPL-3.0-or-later |
|
10 |
+ * @license commercial |
|
11 | 11 |
*/ |
12 | 12 |
|
13 | 13 |
namespace VonRotenberg\MemberfilesBundle\DependencyInjection; |
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 [package name]. |
|
7 |
+ * |
|
8 |
+ * (c) John Doe |
|
9 |
+ * |
|
10 |
+ * @license LGPL-3.0-or-later |
|
11 |
+ */ |
|
12 |
+ |
|
13 |
+namespace VonRotenberg\MemberfilesBundle\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 VonrotenbergMemberfilesExtension extends Extension |
|
21 |
+{ |
|
22 |
+ public function load(array $configs, ContainerBuilder $container): void |
|
23 |
+ { |
|
24 |
+ $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../../config')); |
|
25 |
+ $loader->load('services.yml'); |
|
26 |
+ } |
|
27 |
+} |