| ... | ... |
@@ -24,9 +24,9 @@ class ContaoMemberExtensionExtension extends Extension |
| 24 | 24 |
{
|
| 25 | 25 |
$loader = new YamlFileLoader( |
| 26 | 26 |
$container, |
| 27 |
- new FileLocator(__DIR__.'/../../config') |
|
| 27 |
+ new FileLocator(__DIR__ . '/../../config') |
|
| 28 | 28 |
); |
| 29 | 29 |
|
| 30 |
- $loader->load('listener.yml');
|
|
| 30 |
+ $loader->load('services.yaml');
|
|
| 31 | 31 |
} |
| 32 | 32 |
} |
| ... | ... |
@@ -1,13 +1,16 @@ |
| 1 | 1 |
<?php |
| 2 | 2 |
|
| 3 |
-/** |
|
| 4 |
- * Procuna |
|
| 3 |
+/* |
|
| 4 |
+ * This file is part of Oveleon ContaoMemberExtension Bundle. |
|
| 5 | 5 |
* |
| 6 |
- * @link https://www.oveleon.de/ |
|
| 7 |
- * @copyright Copyright (c) 2021 Oveleon GbR (https://www.oveleon.de) |
|
| 6 |
+ * @package contao-member-extension-bundle |
|
| 7 |
+ * @license MIT |
|
| 8 |
+ * @author Sebastian Zoglowek <https://github.com/zoglo> |
|
| 9 |
+ * @author Daniele Sciannimanica <https://github.com/doishub> |
|
| 10 |
+ * @author Fabian Ekert <https://github.com/eki89> |
|
| 11 |
+ * @copyright Oveleon <https://www.oveleon.de/> |
|
| 8 | 12 |
*/ |
| 9 | 13 |
|
| 10 |
- |
|
| 11 | 14 |
namespace Oveleon\ContaoMemberExtensionBundle\DependencyInjection; |
| 12 | 15 |
|
| 13 | 16 |
use Symfony\Component\Config\FileLocator; |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,29 @@ |
| 1 |
+<?php |
|
| 2 |
+ |
|
| 3 |
+/** |
|
| 4 |
+ * Procuna |
|
| 5 |
+ * |
|
| 6 |
+ * @link https://www.oveleon.de/ |
|
| 7 |
+ * @copyright Copyright (c) 2021 Oveleon GbR (https://www.oveleon.de) |
|
| 8 |
+ */ |
|
| 9 |
+ |
|
| 10 |
+ |
|
| 11 |
+namespace Oveleon\ContaoMemberExtensionBundle\DependencyInjection; |
|
| 12 |
+ |
|
| 13 |
+use Symfony\Component\Config\FileLocator; |
|
| 14 |
+use Symfony\Component\DependencyInjection\ContainerBuilder; |
|
| 15 |
+use Symfony\Component\DependencyInjection\Extension\Extension; |
|
| 16 |
+use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; |
|
| 17 |
+ |
|
| 18 |
+class ContaoMemberExtensionExtension extends Extension |
|
| 19 |
+{
|
|
| 20 |
+ public function load(array $configs, ContainerBuilder $container): void |
|
| 21 |
+ {
|
|
| 22 |
+ $loader = new YamlFileLoader( |
|
| 23 |
+ $container, |
|
| 24 |
+ new FileLocator(__DIR__.'/../Resources/config') |
|
| 25 |
+ ); |
|
| 26 |
+ |
|
| 27 |
+ $loader->load('listener.yml');
|
|
| 28 |
+ } |
|
| 29 |
+} |