Skip to content

Commit d3ac383

Browse files
committed
ADD: extension
1 parent fe37532 commit d3ac383

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
4+
namespace HalloVerden\HttpExceptionsBundle\DependencyInjection;
5+
6+
7+
use Symfony\Component\DependencyInjection\ContainerBuilder;
8+
use Symfony\Component\DependencyInjection\Extension\Extension;
9+
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
10+
use Symfony\Component\Config\FileLocator;
11+
12+
class HalloVerdenHttpExceptionsExtension extends Extension {
13+
14+
/**
15+
* @inheritDoc
16+
* @throws \Exception
17+
*/
18+
public function load(array $configs, ContainerBuilder $container) {
19+
$loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
20+
$loader->load('services.yaml');
21+
}
22+
23+
}

0 commit comments

Comments
 (0)