-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApiTrackerBundle.php
More file actions
38 lines (30 loc) · 1.1 KB
/
ApiTrackerBundle.php
File metadata and controls
38 lines (30 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/*
* This file is part of the ApiTrackerBundle package.
*
* (c) Goatform
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Goatform\ApiTrackerBundle;
use Symfony\Component\HttpKernel\Bundle\AbstractBundle;
use Symfony\Component\Config\Definition\Configurator\DefinitionConfigurator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
class ApiTrackerBundle extends AbstractBundle
{
protected string $extensionAlias = 'goatform_api_tracker';
public function configuration(DefinitionConfigurator $definition): void
{
$definition->import('../config/goatform_api_tracker.yaml');
$definition->rootNode()
->children()
->scalarNode('api_url')->end()
->end();
}
public function loadExtension(array $config, ContainerConfigurator $container, ContainerBuilder $builder): void
{
$container->import('../config/goatform_api_tracker.yaml');
}
}